|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| {{Template:InvalidHexData:Position subtitle}}
| | #REDIRECT [[InvalidHexData class#Position property|Position property]] |
| This readOnly property is the position in the (expected) hexadecimal string where a nonhexadecimal character was found
| |
|
| |
|
| ==Syntax==
| | [[Category:InvalidHexData methods|Position property]] |
| {{Template:InvalidHexData:Position syntax}}
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%number</th>
| |
| <td>This numeric value is the position in the hexadecimal string where a non-hexadecimal character was found. <var class="term">%number</var> will be <code>0</code> (zero) if the exception was caused because the method object string contained an odd number of characters.
| |
| </td></tr>
| |
| <tr><th>invalidHexData</th>
| |
| <td>A reference to an instance of an <var>[[InvalidHexData_class|InvalidHexData]]</var> object.
| |
| </td></tr></table>
| |
| | |
| ==Example==
| |
| <ol><li>The following statements catch an InvalidHexData exception and print its position:
| |
| <p class="code"> %target is object invalidhexdata
| |
| [[try]] %myobject:mymethod
| |
| [[catch]] invalidHexData to %target
| |
| print '%target is ' %target:Position
| |
| end try
| |
| </p></ol>
| |
| | |
| ==See also==
| |
| {{Template:InvalidHexData:Position footer}}
| |