UniQuery dataset fieldvalues
Posted: Wed 11 Nov 2009 14:17
I'm porting an ADOquery routine to UniQuery but am having difficulty with capturing field values from the dataset that is returned. Briefly, what I'm doing is running the query and setting a string variable = a field value:
UniQuery.SQL.Add('select * from customers');
UniQuery.Open;
UniQuery.First;
s := UniQuery.FieldValues['Name'];
The FieldValue property of the dataset is not recognized. Is there a workaround I can use? I can display the result in a DBGrid, but all I need is the value of the field.
UniQuery.SQL.Add('select * from customers');
UniQuery.Open;
UniQuery.First;
s := UniQuery.FieldValues['Name'];
The FieldValue property of the dataset is not recognized. Is there a workaround I can use? I can display the result in a DBGrid, but all I need is the value of the field.