showvariables
VARIABLES

The showvariables statement forces Panorama to update the display of one or more variables on every form in the active database.


Parameters

This statement has one parameter:

variables – is a list of variables to be displayed. (There must, of course, be an object on the form that specifies where and how each specified variable should be displayed. If no such object exists, the variable will not be displayed.) Each variable should be separated from the next by a comma. If a variable name contains spaces or punctuation, or begins with any character except a letter or underscore, it should be surrounded by chevron (« ») characters.


Description

When a variable is changed by a procedure, any display of that variable on a form is not normally updated to show the new value. (Continuously updating all variables would make Panorama procedures much slower.) When you do need Panorama to update the display of a variable, use the showvariables statement. Every graphic object that displays the variable will be updated, including text and image objects. (Note: The showvariables statement will cause the variable to update in all forms in the current database. It will not affect forms in other database files, even if they happen to display one or more of the specified variables.)

The example creates a fileglobal variable named startTime, fills it with the current time, and then displays the current time.

fileglobal startTime;
startTime = timepattern(now(),"hh:mm am/pm")
showvariables startTime

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0