I have seen many references [in the news group] to 'Global' report
variables - many of which explain some extremely useful functionality.
However, I still cannot work out how to create one of these - how does one
create a Global variable at in the runtime designer?
Comments
2. Click the Calc tab to enter the RAP workspace
3. Click View | Module from the main menu
4. Click on the Declarations node in the Module View in the upper left hand
corner of the RAP workspace
5. Click on the Variables item in the Code Explorer's list view in the upper
right hand side of the RAP workspace.
6. Click in the Code Editor in the bottom left hand side of the RAP
workspace. This should cause 'var' to appear and the editor should become
enabled.
7. Type gMyGlobalNumber: Integer; underneath the var keyword in the code
editor.
Now you have a global variable which can be used in RAP.
To initialize this value, use the Events node of themoduel view to create a
global OnCreate event handler to set this variable's value.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com