Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position the cursor before a specific word in memo field
Message
De
09/05/2006 16:27:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/05/2006 09:14:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01120308
Message ID:
01120527
Vues:
17
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform