Retrieve a single Enum value from the Database.

The main benefit over GetScalarInteger is that it makes sure the value returned is of the correct Enum type.

Syntax

ISDatabaseHandler.GetScalarEnum(sqlQuery, returnValue, enumType, [defaultValue], [autoEscape])

Parameters

NameTypeOptionalByRefDescription
sqlQuery String
returnValue Object ByRef
enumType Type The type of Enum.
defaultValue Object Optional If omitted, a value of 0 is assumed.
autoEscape Boolean Optional If omitted, a value of False is assumed.

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISDatabaseHandler
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0