Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position the cursor before a specific word in memo field
Message
From
10/05/2006 02:50:25
 
 
To
09/05/2006 09:14:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01120308
Message ID:
01120614
Views:
14
>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")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform