Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP finding the Cursor Position within a text window 1

Status
Not open for further replies.

kazl

Programmer
Dec 9, 2002
68
GB
Hi to everybody.

I'm working in Visual FoxPro 6 and am stuck on something that may be quite simple to someone out there...

I want to create a "hot key" function within a text or edit box that can give me the current cursor position. This is so that I can then programatically insert text selected from another source.

I've been through MSDN Help, VFP manuals, various books and searched the Web. All I've found so far is that there's a WGETCURSOR function somewhere in the API Library Routines. I've not used the API Library Routines yet (that I'm aware of!) and don't know where to start.

Have I missed a function somewhere or does anyone know of another option to get the cursor position? If I have to use API - how I would find the correct Library / source?

Any wee pointers would be really appreciated.
Thank you. Kaz
 
I don't know anything about vfp, but in some other languages the textbox has a SelStart and SelLength property.
When SelStart and SelLength have the same value, nothing is selected and it points to the cursor position.
 
To Hennep

Sorry - I posted this into wrong forum. Thanks for the pointer though it might help.

Kaz.
 
hi Kaz,

> If I have to use API
this was the right forum to ask, you wanted an API :)

success,
Hennie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top