Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight a certain text in a editbox
Message
 
À
19/12/2011 14:04:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01531378
Message ID:
01531379
Vues:
87
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform