FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cursor position in a get memo
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Cursor position in a get memo
Posted: Fri Mar 08, 2024 08:46 PM

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

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1054
Joined: Sun Oct 09, 2005 10:41 PM
Re: Cursor position in a get memo
Posted: Fri Mar 08, 2024 11:10 PM
Hola, prueba esto:
Code (fw): Select all Collapse
       REDEFINE GET oObs ;
                VAR cObs MEMO ;
                ID 119 OF oDlg
                oObs:bGotFocus = { || oObs:SetSel( 0, 0 )} //,;
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Cursor position in a get memo
Posted: Sat Mar 09, 2024 06:55 AM

oMGet:GetRow()

oMGet:GetCol()

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion