TSybVariable Component

 

Derived from TComponent

 

Overview:

 

This component is provided for those times when you want to manipulate data from a result set without necessary displaying it on screen in it’s initial form.  It is basically a wrapper for a char string.  It is designed for queries which return only one row of data.  If your query returns multiple rows, only the last row’s column of interest, will be stored.

 

To use it, set the Name property to match the column name of the result set which you want to store.  The TSYBSql Component  will automatically locate it and match a result-set column name to this components name.

 

This component has one public variable namely char * ColumnName which can be read to access the data return by the query.

This component also has a method called Convert which will return the above charater string as an AnsiString.

 

See also:  TSybSql,  TSybaseDatabase, TSybArray