Field GetDbValue-type-() Method

Gets the field's internal value as it is currently stored in the database.

Function Signature

 string GetDbValueString()

int GetDbValueInt()

int64_t GetDbValueInt64()

double GetDbValueDouble()

TimeT GetDbValueTimeT()

Variant GetDbValue()

Parameters

Parameter Type Description

None

Return

Type Description

string

int

int64_t

double

TimeT

Variant

The internal database value for the field. 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

The value does not reflect any changes that are waiting to be stored, such as editing that has occurred on a transition form. When an Update() executes, this value is recorded in the change history as the "prior" value. To get the current value reflecting all changes, use the GetValue() method.

Related Topics

Field