IsValidValue

Indicates whether a string is a valid value for the specified type of Financial Management string. For example, IsValidValue can indicate whether a string would be a valid application name or a valid dimension member label.

Syntax

<HFMwStringUtility>.IsValidValue (bstrValue, lValueType)

Argument

Description

bstrValue

The string to be evaluated.

Input argument. String subtype.

lValueType

The type of Financial Management string. Pass one of the HFMConstants type library constants listed in Validation Type Constants.

Input argument. Long subtype.

Return Value

Returns TRUE if the string represents a valid value, FALSE otherwise.

Example

The following function indicates whether the passed string would be a valid cell description.

Function IsValidLineItemDesc(sDesc)
Dim cStringUtility
Set cStringUtility = Server.CreateObject("Hyperion.HFMwStringUtility")
IsValidLineItemDesc = cStringUtility.IsValidValue(sDesc, _ 
HFM_VALIDATIONTYPE_CELL_DESCRIPTION)
End Function