ValidateValue

Indicates whether a String resolves to a Double that Financial Management would then allow to be inserted as a journal amount. To evaluate as valid, the String must not represent a negative Double, as Financial Management does not allow the entry of negative amounts in journals.

Syntax

<IHsvJournalsEx>.ValidateValue(lEntity, lParent, lAccount, lValue, bstAmount)

Argument

Description

lEntity

Long (ByVal). You must pass a valid Long. The value passed is ignored, this argument is intended for future use.

lParent

Long (ByVal). You must pass a valid Long. The value passed is ignored, this argument is intended for future use.

lAccount

Long (ByVal). You must pass a valid Long. The value passed is ignored, this argument is intended for future use.

lValue

Long (ByVal). You must pass a valid Long. The value passed is ignored, this argument is intended for future use.

bstAmount

String (ByVal). The value to be validated.

Return Value

Boolean. Returns TRUE if the bstAmount argument’s value is considered valid, FALSE if it is considered invalid.

Example

This example tests the validity of the value in a text box named TxtData. If the value is invalid, any code placed within the If structure would be executed.

Dim bRet As Boolean
bRet = m_cIHsvJournalEx.ValidateValue(-1, -1, -1, -1, _ 
Trim(TxtData.Text))
If bRet = False Then
  …
End If