Field references: Named and Ordinal/Index
Is it possible to refer to a field via it's ordinal number or index?
Common use of field reference is by field name.
I have the need to access records filtered by a field unknown until runtime. I plan on passing in the field for which I need to filter/fetch records.
Put another way: Is it possible to pass in a field identifier at runtime and then use that identifier to fetch records?
example (field name):
- void example(string FieldName, string FieldCriteria)
- {
- var = fromname[FieldName == FieldCriteria];
- }
...or...
example (ordinal/index):
- void example(int FieldNdx, string FieldCriteria)
- {
- var = fromname[FieldNdx == FieldCriteria];
- }
BTW, looked here, did not find help. http://help.creator.zoho.com/Fetch-Records.html
tt