|
|
(7 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
| | #REDIRECT [[InvalidHexData class#Position property|Position property]] |
|
| |
|
| <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:InvalidHexData methods|Position property]] | | [[Category:InvalidHexData methods|Position property]] |
| <p>
| |
| Position is a member of the [[InvalidHexData class]].
| |
| </p>
| |
|
| |
| ==Syntax==
| |
| <p class="syntax">%pos = %invHex:Position
| |
| </p>
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%pos</th>
| |
| <td>This numeric value is the position in the hexadecimal string where a non-hexadecimal character was found. Position is <code>0</code> if the exception was caused because the method object string contained an odd number of characters.
| |
| </td></tr>
| |
| <tr><th>%invHex</th>
| |
| <td>A reference to an instance of an InvalidHexData object.
| |
|
| |
| </td></tr></table>
| |
| ==Example==
| |
|
| |
| 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>
| |