Position (InvalidHexData property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 14: Line 14:


==Example==
==Example==
<ol><li>The following statements catch an InvalidHexData exception and print its position:
The following statements catch an InvalidHexData exception and print its position:
<p class="code">   %target is object invalidhexdata
<p class="code">%target is object invalidhexdata
  [[try]] %myobject:mymethod
[[try]] %myobject:mymethod
    [[catch]] invalidHexData to %target
  [[catch]] invalidHexData to %target
    print '%target is ' %target:Position
  print '%target is ' %target:Position
  end try
end try
</p></ol>
</p>


==See also==
==See also==
{{Template:InvalidHexData:Position footer}}
{{Template:InvalidHexData:Position footer}}

Revision as of 16:38, 5 May 2011

Input string position where non-hexadecimal character found (InvalidHexData class) This ReadOnly property is the position in the (expected) hexadecimal string where a nonhexadecimal character was found

Syntax

%number = invalidHexData:Position

Syntax terms

%number This numeric value is the position in the hexadecimal string where a non-hexadecimal character was found. %number will be 0 (zero) if the exception was caused because the method object string contained an odd number of characters.
invalidHexData 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

See also