Field GetValue-type-() Method

Gets the field's internal value without checking privileges, including changes made to the value during the transition if in a transition context.

Function Signature

 string GetValueString()

int GetValueInt()

int64_t GetValueInt64()

double GetValueDouble()

TimeT GetValueTimeT()

Variant GetValue()

Parameters

Parameter Type Description

None

Return

Type Description

string

int

int64_t

double

TimeT

Variant

The internal value. For Text fields, this is the exact value entered in the field. For values that are not Variant or TimeT, this internally gets the value from the field as a Variant, and then tries to convert the value to the requested type.

TimeT can be used with Date/Time fields to get the internal date value.

Note: If the field is a Multi-User field for which the Groups and Users selection mode is enabled, the value can include both pure integers (TS_IDs from the TS_USERS table) and group identifiers (TS_IDs from the TS_GROUPS table). The latter are in the form G1, G2, …

Technical Details

SBM ModScript version: 11.4.

Notes

This reflects any changes that are made during a transition. When an Update() executes, this value is recorded in the change history as the "new" value. To get the original value, use the GetDbValue() method.

Related Topics

Field