Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position the cursor before a specific word in memo field
Message
De
10/05/2006 02:50:25
 
 
À
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:
01120614
Vues:
17
>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??
>
>Thank you in advance for any idea
>
>Luigi
_screen.AddObject("edit","editbox")
WITH _screen.edit
	.visible = .t.
	.hideselection = .f.
	.value = " word1 wordbla vordblaxblax wordy"
	PRIVATE awords,pos
	pos = 0
	FOR j=1 TO ALINES(awords,.value,16," ")
		IF EMPTY(awords[j]) OR LIKE("w*",awords[j]) && rule
			pos = pos + len(awords[j])
			LOOP
		ENDIF
		.selstart=m.pos
		.sellength = len(awords[j])-1
		wait windows " la parola selezionata non è corretta"
		exit
	NEXT
ENDWITH
_screen.RemoveObject("edit")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform