11.12.8 GetNumber Method

Gets the number value of a child element with the specified name.

Input Arguments

Name

Type

Mandatory

Description

Key

String (Unicode)

Yes

The name of the child element.

DefaultValue

Number

No

The default value if no element with the specified name exists.

 

Return Value

Type

Description

Number

The number value of the child element.

If the element can't be converted into a number, 0 will be returned.