Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position the cursor before a specific word in memo field
Message
From
09/05/2006 16:27:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/05/2006 09:14:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01120308
Message ID:
01120527
Views:
14
This message has been marked as the solution to the initial question of the thread.
>Hi at all,
>
>I have the following question:
>
>I need to verify the correct spelling of some text in memo field, I use GETWORDCOUNT() to obtain the number of words and GETWORDNUM to obtain any word that I verify looking in a database if the word is correct or not. My problem is that I can not update automatically the word if it is wrong and I am trying to position the mouse cursor at the beginning of the word that I am analyzing without any result.
>
>Is there any way to do that??
*-- assuming your code runs in some event of an editbox:
n=atc(lcWord, this.value)
this.selstart=n
this.sellength=len(lcWord)
If you want to have a modify memo window, then
n=atc(lcWord, yourmemo)
modify memo yourmemo range n, n+len(lcWord)-1

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform