i := 0; REPEAT i += 1; FldRef := RecRef.FIELDINDEX(i); UNTIL (FldRef.NAME=YourFieldName) OR (i=RecRef.FIELDCOUNT);