Official Content

In several GeneXus objects, predefined variables of common usecalled standard variablesare available.

Even though they are not shown by default in all types of objects, if you try to define a variable using the name of a standard variable, it will automatically appear with the standard variable's definition. You will not be able to modify its data type or otherwise redefine it. In other words, it is not possible to define user variables with those names in any object type.

Standard variable name Data Type Objects in which it is shown by default Observations
Err Numeric(3)    
ErrMsg Character(70)    
ErrMsgGxRemove   Numeric(1.0) Transaction object  
Line Numeric(6.0) Procedure object  
Mode Character(3) Transaction object  
Mr Character(3)   Deprecated.
It is no longer used.
Msg Character(70)    
Op Character(1)   Deprecated.
It is no longer used.
Outdev Character(1)   Deprecated.
It is no longer used.
Output Character(3) Procedure object  
Page Numeric(6.0) Procedure object  
Pgmdesc  Character(256) Almost all  
Pgmname Character(128) Almost all  
RestCode Numeric(3.0) API object It can only accept values of categories 2xx and 4xx.
For more information, see SAC #50865
RestMethod HttpMethod domain API object  
Time Character(8) Almost all  
Today Date Almost all  
RestServiceName Character(256) API object  

See Also

GeneXus reserved words

Last update: December 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant