Unofficial Content

When it is applied to the WebSession Data Type, it adds information to the current active session.
When it is applied to a variable based on the Expression Data Type, it sets a value to the variable.
When it is applied to a variable/attribute based on the Date/DateTime Data Types it assigns a year-month-date (time-minutes-seconds), as functions YMDtoD and YMDHMStoT 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
   The value has to be a string.

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

mm
   It is a numeric-expression that represents the month.

dd
   It is a numeric-expression that represents the day.

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

MM
   It is a numeric-expression that represents the minutes.

SS
   It is a numeric-expression that represents the seconds.

Scope

Extended Data Types: WEBSession, Expression
Standard Data Types: Date, DateTime
Generators: .NET, Java, Ruby (up to GeneXus X Evolution 3)

See Also

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

     


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