Stimmt; das Feld CURLOC ist character.
Laut Info Center enthält es:
Du mußt also diesen Inhalt von Hex auf Numeric umrechnen.Cursor location (line and position). Updated on input operations that are not subfile operations that return data to the program. For example, hex 0102 means line 1, position 2. Line 10, position 33 would be hex 0A21.
So ähnlich wie z.B.:
Dann müßte der Inhalt von NUMROW und NUMPOS den numerischen Wert der Cursorposition enthalten.Code:D CHROW DS D NUMROW 1 2B 0 D CHPOS DS D NUMPOS 1 2B 0 C EVAL NUMROW = 0 C EVAL NUMPOS = 0 C EVAL %subst(CHROW:2:1) = %subst(CURLOC:1:1) C EVAL %subst(CHPOS:2:1) = %subst(CURLOC:2:1)
Ich habe dies aber jetzt nicht ausprobiert.
![[NEWSboard IBMi Forum]](images/duke/nblogo.gif)



Mit Zitat antworten
Bookmarks