TOracleQuery.Describe - as for TOracleDataset?

Hello!
Does TOracleDataset has some method as TOracleQuery.Describe?
I want to get the field descriptions of a TOraclceDataset without actually executing it.
procedure TOracleDataset.InternalInitFieldDefs and procedure TOracleDataset.InternalOpen are protected.
Thanks.
 
You can use the FieldDefs for this. For example:
Code:
DataSet.FieldDefs.Update;
  for i := 0 to DataSet.FieldDefs.Count - 1 do
    ShowMessage(DataSet.FieldDefs[i].Name);
 
Hello, Marco!
DataSet.Fields hasn't Update method.
After calling FieldDefs.Update,
FieldDefList.Update, FieldList.Update
I can't use method DataSet1.FindField or DataSet1.FieldByName.
I want to use FindField (FieldByName) to set field's property (PickList, ReadOnly, etc).
 
Back
Top