Field references: Named and Ordinal/Index

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):
  1. void example(string FieldName, string FieldCriteria)
  2. {
  3.       var = fromname[FieldName == FieldCriteria];
  4. }
...or...

example (ordinal/index):
  1. void example(int FieldNdx, string FieldCriteria)
  2. {
  3.       var = fromname[FieldNdx == FieldCriteria];
  4. }

BTW, looked here, did not find help. http://help.creator.zoho.com/Fetch-Records.html

tt