Thanks Ciuly, but in the first option i have the parameter DS:TQuery, and when i call the function always receive a nil value. With the second option i receive an access violation. My program have some TQuery declared in a data module, an i like to pass diferent TQuery in the function depending of the user selection. It is possible that the error is in the call of the function?
Main Topics
Browse All Topics





by: ciulyPosted on 2006-12-14 at 22:19:27ID: 18144637
you mean like:
procedure myproc(ds:TTable); ?
or
procedure myproc(ds:TDataSet); ? (will be abel to pass all components that extend it)