Xbasic
LOCAL_VARIABLES Function
Syntax
as P = LOCAL_VARIABLES()
Description
Gets the local variable frame, used to pass local script variables down to other functions.
Discussion
The LOCAL_VARIABLES() function returns a pointer to the collection of variables local to the layout or function.
Example
The following example shows the variables local to the Interactive window.
dim a as C dim b as N a = "alpha" b = 12 ? local_variables() = a = "alpha" b = 12.000000
This example responds to the OnPush event of a button and reports on the local variables for the form.
dim vars as P dim varnames as C vars = local_variables() varnames = properties_enum(vars) ui_msg_box("Local Variables", varnames)
See Also