RepSpec variables
Christoffer Riska
10-1-18
A report has a report definition window where the user can select what should be included in the report, i.e. the date range, items, radiobuttons, checkboxes etc.

Radiobuttons and checkboxes usually use the flags variable, but other varables are used as well, like Artmode.


Let's say I want to use RepSpec.flags[199] and RepSpec.myvariable.

Like this in the window:
Checkbox(h2,v+=32,0,"sometext",flags[199]);
Checkbox(h2,v+=32,0,"sometext2",myvariable);

Then in the report:

if (RepSpec.flags[199]==1) then begin
some code;
end;
if (RepSpec.myvariable==1) then begin
some code;
end;

I can use both "flags[199]" and "myvariable" in the WindowBegin section, but if I use them in the report the HAL compiler complains about them. "flags[19]" seems to work, though.
Where do I define RepSpec variables?
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations>>ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024