|
declare a field inside a matrix |
|
comstr |
define the name of the field |
M4UStr |
Type of data to Store |
20 |
length of the field |
0 |
register to connect |
|
As you can see, the 4rd parameter is optional, you can connect the array to a register or you can put zero
RecordBegin(AutVc,-,"auto");
RecordField(Math,M4Matrix,0,0);
RecordField(Code,M4Code,10,AutVc);
RecordField(Comment,M4Str,60,0);
RecordField(DontSwap,M4Int,0,0);
ArrayBegin(Math,-,1);
ArrayField(AccNumber,M4Code,10,AccVc);
ArrayField(objstr,M4UStr,60,ObjVc);
ArrayField(comstr,M4Str,20,0);
ArrayField(dstr,M4PrcStr,20,0);
ArrayField(cstr,M4PrcStr,20,0);
ArrayField(VATCode,M4Code,2,0);
EndArray;
MainKeyBegin(Code,0);
KeySegment(Code);
KeyBegin(Comment);
KeySegment(Comment);
KeySegment(Code);
EndRecord;
««