Ver Mensaje Individual
  #1  
Antiguo 23-12-2004
Avatar de rolando_s
rolando_s rolando_s is offline
Miembro
 
Registrado: oct 2003
Ubicación: Santiago Chile
Posts: 31
Reputación: 0
rolando_s Va por buen camino
Question Tablas en Function

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
__________________
www.cybervanet.cl
El matrimonio es como un submarino
puede flotar pero esta diseñado para hundirse
Responder Con Cita