Position (InvalidHexData property)

From m204wiki
Revision as of 20:02, 14 January 2011 by 198.242.244.47 (talk) (Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>Position in the input string where a non-hexadecimal character was found<section end=dpl_desc/></span> [[Category:InvalidHexD...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/>Position in the input string where a non-hexadecimal character was found<section end=dpl_desc/>

Position is a member of the InvalidHexData class.

Syntax

%pos = %invHex:Position

Syntax terms

%pos This numeric value is the position in the hexadecimal string where a non-hexadecimal character was found. Position is 0 if the exception was caused because the method object string contained an odd number of characters.
%invHex A reference to an instance of an InvalidHexData object.

Example

The following statements catch an InvalidHexData exception and print its position:

%target is object invalidhexdata try %myobject:mymethod catch invalidHexData to %target Print '%target is ' %target:Position end try