Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight a certain text in a editbox
Message
 
To
19/12/2011 14:04:59
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01531378
Message ID:
01531379
Views:
86
This message has been marked as the solution to the initial question of the thread.
>I want to have a search feature in an edibox
>there is a txtbo for the word to be found
>
>in there i do:
>
>x1=ALLTRIM(UPPER(this.Parent.txt1.Value))
>LOCATE FOR x1$UPPER(notes)
>thisform.nccNotes_Pointer=RECNO('ccNOTES')
>
>this.Parent.grdNOTES.Refresh()
>this.Parent.edt2.Refresh()
>
>x2=UPPER(ccNOTES.notes)
>x3=AT(x1,x2)  && find the start in the memo
>this.Parent.edt2.SelStart=x3
>this.Parent.edt2.SelLength=LEN(x1)  && epect the word th be highlightd, but isnt
>
>
>
>but it does not highlight
>can it be done? and how??
>
>Thanks
>
>Peter

Make sure that HideSelection of the EditBox is set to .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform