Page 1 of 1

Cursor position in a get memo

PostPosted: Fri Mar 08, 2024 8:46 pm
by MGA
how can I get the cursor position in a "get memo"?

ex:

xxxxx
yyyyy|(CURSOR POSITION)

oGet:GetCol() return 6

the correct one would be 11

Re: Cursor position in a get memo

PostPosted: Fri Mar 08, 2024 11:10 pm
by Willi Quintana
Hola, prueba esto:
Code: Select all  Expand view

       REDEFINE GET oObs ;
                VAR cObs MEMO ;
                ID 119 OF oDlg
                oObs:bGotFocus = { || oObs:SetSel( 0, 0 )} //,;

 

Re: Cursor position in a get memo

PostPosted: Sat Mar 09, 2024 6:55 am
by Antonio Linares
oMGet:GetRow()
oMGet:GetCol()