Class NSFieldInfoShortText

Short text string custom database field.

Constructors

NSFieldInfoShortText()

Initializes a new instance of the NSFieldInfoShortText class.

Declaration

NSFieldInfoShortText

Methods

GetChoices()

Declaration

String[] GetChoices()

Returns

Type Description
String[] List of items to choose from. Null = not a dropdown list.

GetDefaultValue()

Declaration

String GetDefaultValue()

Examples

NSFieldInfoShortText thing;
String defaultValue = thing.GetDefaultValue();

Returns

Type Description
String Default string value.

GetFormatMask()

Declaration

String GetFormatMask()

Examples

NSFieldInfoShortText thing;
String formatMask = thing.GetFormatMask();

Returns

Type Description
String Formatting mask, can be whatever the controls understand (currently nothing).

GetIsHtml()

Declaration

Bool GetIsHtml()

Examples

NSFieldInfoShortText thing;
Bool isHtml = thing.GetIsHtml();

Returns

Type Description
Bool Do not escape HTML in field when displaying contents.

GetTextLength()

Declaration

Integer GetTextLength()

Examples

NSFieldInfoShortText thing;
Integer textLength = thing.GetTextLength();

Returns

Type Description
Integer Length (in characters) of a text field, 0 for other types.

SetChoices(String[])

Declaration

Void SetChoices(String[] choices)

Parameters

Type Name Description
String[] choices List of items to choose from. Null = not a dropdown list.

Returns

Type Description
Void

SetDefaultValue(String)

Declaration

Void SetDefaultValue(String defaultValue)

Examples

NSFieldInfoShortText thing;
String defaultValue;
thing.SetDefaultValue(defaultValue);

Parameters

Type Name Description
String defaultValue Default string value.

Returns

Type Description
Void

SetFormatMask(String)

Declaration

Void SetFormatMask(String formatMask)

Examples

NSFieldInfoShortText thing;
String formatMask;
thing.SetFormatMask(formatMask);

Parameters

Type Name Description
String formatMask Formatting mask, can be whatever the controls understand (currently nothing).

Returns

Type Description
Void

SetIsHtml(Bool)

Declaration

Void SetIsHtml(Bool isHtml)

Examples

NSFieldInfoShortText thing;
Bool isHtml;
thing.SetIsHtml(isHtml);

Parameters

Type Name Description
Bool isHtml Do not escape HTML in field when displaying contents.

Returns

Type Description
Void

SetTextLength(Integer)

Declaration

Void SetTextLength(Integer textLength)

Examples

NSFieldInfoShortText thing;
Integer textLength;
thing.SetTextLength(textLength);

Parameters

Type Name Description
Integer textLength Length (in characters) of a text field, 0 for other types.

Returns

Type Description
Void