Official Content

When applied to a variable based on the WebSession data type, it adds information to the current active session.
When applied to a variable based on the Expression data type, it sets a value for the variable.
When applied to a variable/attribute based on the Date / DateTime data type, it assigns a year-month-date (time-minutes-seconds), as YMDtoD and YMDHMStoT functions do.

Syntax

&varBasedOnWebSession.Set(Key, Value)
&varBasedOnExpressionDataType.Set(Key, Value)
DateAttOrVar.Set(yy,mm,dd)
DateTimeAttOrVar.Set(yy ,mm, dd, [HH[:MM][:SS]])

Where:

Key
   Is the Session or Expression key, and it has to be a String.

Value
   Value that must be based on the Character / Var Char data type.

yy
   Is a numeric expression that represents the year. This value does adjust according to the property ‘First year of 20th century property’.

mm
   Is a numeric expression that represents the month.

dd
   Is a numeric expression that represents the day.

HH
   Is a numeric expression that represents the hour. The time value must be specified in 24-hour format.

MM
   Is a numeric expression that represents the minutes.

SS
   Is a numeric expression that represents the seconds.

Scope

Extended Data Types: WebSession, Expression
Standard Data Types: Date, DateTime
Generators: .NET, JavaAngular (Angular generator does not support the WebSession data type)

See Also

TimeZone Support - General Considerations
YMDtoD function
WebSession
Expression
YMDtoD function
YMDHMStoT function

     

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