Define variable

Official Content
This documentation is valid for:

You may define variables in most GeneXus objects.

GeneXus objects that allow defining variables, contains a selector named Variables in order to define and manage them.

VariablesSelector

If you select it, the Variable Editor will be opened.

Variables are local, which means that they are accessible only inside the object. If you need to send some variable values to another object, you can call the desired object, sending the variables as parameters to it. 

After defining a variable, you will be able to use it (inside an allowed section like the Source, Rules, Events, etc.) referencing its name preceded by the & symbol.

For example, if you define a variable named &Quantity, then being in a section of the same object where it is allowed to use variables, you can type & and you will be able to select the &Quantity variable or other defined variable.

Each variable has some properties in order to set them. The main properties are the following:

Properties
Name
Description
Based on
Data type
 

Depending on the Data Type property you choose, different related properties are offered to set them.


See also

Picture editor
Using arrays
Built-in variable list




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.