Table of contents



Official Content

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 Variables 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:

 

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






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant