Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search
Message
From
26/10/2001 08:41:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/2001 08:21:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Search
Miscellaneous
Thread ID:
00573577
Message ID:
00573589
Views:
30
>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
Ç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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform