Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Field number
Fri, Apr 11 2008 4:07 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Sean


I tend to use persistent fields almost exclusively for tables, FieldByName for queries and in one case where I have a loop on a query and wanted every bit of speed I could get I worked out the index positions of some of the fields in the table at app start.

Roy Lambert
Fri, Apr 11 2008 5:47 AMPermanent Link

Bruno Krayenbuhl
Roy

I go strait at the required fields with a TList I load with

 MyDataSet.GetFieldList(FMyFieldList, MyFieldNames);  


Then one can iterate the fields with

 for i:=0 to FMyFieldList.Count-1 do
   with TField(FMyFieldList[i]) do
     ...whatever you  want with the field

Bruno
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image