I am trying to define fields in a cbMemSet, reading the field names from another table.
Im not sure why but it is not creating any fields in my cbMemSet. when debugging it it goes though that line each and every time but when looking at my cbMemSet there are no defined fields in there?
Suggestions?
Thanks in advance for the help
Tom C
Code:
[b]with[/b] UDFLabels [b]do[/b] [b]begin[/b]
Open;
DefineTableStart;
[b]While[/b] [b]not[/b] dbfTable.Eof [b]do[/b] [b]begin[/b]
xLbl:=dbfTable.FieldAsString([teal]'LBL_ID'[/teal]);
xDesc:=dbfTable.FieldAsString([teal]'DESC'[/teal]);
[b]if[/b] dbfTable[purple]2.[/purple]Seek(xLbl) [b]then[/b]
xUDFDesc:=dbfTable[purple]2.[/purple]FieldAsString([teal]'DESC'[/teal])
[b]else[/b]
xUDFDesc:=xDesc;
xtmp:=QuotedStr(xUDFDesc);
xFileName:=dbfTable.FieldAsString([teal]'FILE_NAME'[/teal]);
DefineField(xtmp, [teal]'C'[/teal], [purple]40[/purple], [purple]0[/purple], True);
dbfTable.Skip([purple]1[/purple]);
[b]end[/b]; [navy]//While not dbfTable.Eof do[/navy]
DefineTableEnd;
Close;
[b]end[/b]; [navy]//with UDFLabels
Im not sure why but it is not creating any fields in my cbMemSet. when debugging it it goes though that line each and every time but when looking at my cbMemSet there are no defined fields in there?
Suggestions?
Thanks in advance for the help
Tom C