How to:
Reference: |
A variable is a named storage location capable of containing a certain type of data that can be modified during program execution. You also create variables as part of a class definition or function.
Maintain variables have four attributes:
or
Click the New variable button on the Maintain Objects toolbar.
This variable is global, meaning it is available to any code written in this procedure. To use it in another procedure, you must pass it to the other procedure. For more information, see Passing Parameters Between Maintain Procedures: FROM...INTO.
WebFOCUS Maintain generates Maintain language code for variables. You can edit this code directly in the Procedure Editor.
For more information, see the WebFOCUS Maintain Language Reference manual.
Note: You can easily obtain help on any Maintain language keyword by selecting the keyword and pressing F1.
When you create or edit a variable, WebFOCUS Maintain opens the New Variable or Edit Variable dialog box.
When you define a function argument or return value from the Edit Function dialog box, define a variable as part of a class, or define a computed column for a data source stack, WebFOCUS Maintain opens the Function Parameter or the Function Return, or the Computed Stack Column dialog box (which looks exactly like the Edit Variable dialog box without the x=? Initialize tab).
This dialog box has the following components:
Contains the name of the variable, argument, or return value you are specifying.
Contains the data type of the variable or argument or return value you are specifying. If you want to specify a data type, you can select a recently used data type from the list, or type in the specification for the data type.
Opens the Type Wizard, where you can specify a new data type for the argument or return value. For more information, see Using the Type Wizard.
Note: The Type Wizard does not create specifications for the following data types: date-time, packed-decimal, and text. For more information on specifying packed-decimal or text, see the Describing Data With WebFOCUS Language manual.
When you are creating or editing a variable, use the x=? Initialize tab in the New Variable or Edit Variable dialog box to enter a value for your variable. This value can be any expression. For more information, see the Expressions Reference in the WebFOCUS Maintain Language Reference manual.
When you are creating or editing a variable, function argument, function return value, or computed data source stack column, use the Description tab to enter a description.
You can easily view the description of a variable in the Project Explorer with the Show description command. For more information, see How to View the Description of a Procedure Component.
WebFOCUS |