>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])
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")