Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search
Message
De
26/10/2001 08:50:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/10/2001 08:41:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Search
Divers
Thread ID:
00573577
Message ID:
00573592
Vues:
23
>>Problem: I have a txt field and a grid; I type into txt field and seek on each key stroke. I need to highlight in the grid each found record as the typing continues in the txt field. How do I highlight the grid after each keystroke and return to the txt field for next keystroke?
>>
>>I handle the keystroke in the txt field using the method "interactiveChange".
>>
>>Ron
>
>A simple implementation might be like this :
>-Add a custom property to form named nCurrec with value 0
>-Form.init
>this.myGrid.SetAll('DynamicBackColor','iif(reno(this.recordsource)=thisform.nCurrec,0xFFFF00,0xFFFFFF)','Column')
>
>-Text.Interactivechange
>=seek(TRIM(this.value),thisform.mygrid.recordsource,'searchtag')
>thisform.nCurrec = recno(thisform.mygrid.recordsource)
>thisform.mygrid.refresh
>
>Cetin

For an enhanced implementation check FoxyClasses (signature link).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform