If I have a long WITH DO STATEMENT like
WITH x DO BEGIN
y; // something code start
y;
y;
y;
y;
y; // something code end
END;
How would I skip records if I have boolean global variable on table record x?
Do a IF statement for it
IF x.boolvar THEN //(true)
y;
y;
ELSE
MESSAGE('bla bla %1',...);
or is there a skip for it?
K.S.
0
Answers
If X is your dataitem, you could skip the records in your filter where you retrieve the record for x. You could set: x.Setrange(boolvar, TRUE); then only records with the boolean set will be retrieved.
If it is not the DataItem but a record you retrieve based on another dataitem, you could put an if x.boolvar = FALSE THEN exit; immediately after you retrieve the record.
Hope this makes sence and helps you,
Willy
That was simple and working sollution ^^
RIS Plus, LLC
RIS Plus, LLC
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!