How to Access fields by number in a record
Posted on 2008-10-26
I need to be access the fields in a record sequentialy and to find the field type.
STran = record
TranType :array[0..1] of char;
AccountRef :array[0..7] of char;
NomCode :array[0..7] of char;
TransDate :array[0..9] of char;
example in Psudo Code
for x:= 0 to STran.FIELDCOUNT -1 do
case stTran.FIELDBYNUMBER[x].FIELDTYPE of
String : // process the value of thid field as a string;
Integer : //
end; // end case
Any suggestion on how to achiev this.
Thanks in advance