la tabla esta bien por que si la llamo desde una procedure abre y etc.....
trato de abrir una tabla dentro de una funcion y me da un error
[
Error] Control.pas(66): Undeclared identifier: 'Table1'
Function boton(xxx: String):String;
var
a : Integer;
but :TComponent;
begin
but:=Salas.FindComponent('inp'+intToStr(a));
Table1.open;
Table1.Edit;
*********
Tbutton(but).Caption:=(Table1.FieldByName('nombre')+intToStr(a)
esto continua, todo camina bien mientras no trate de abrir la tabla desde la funcion
les agradecere cualquier ayuda
muchas gracias de antemano