Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search
Message
 
To
26/10/2001 08:50:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Search
Miscellaneous
Thread ID:
00573577
Message ID:
00573690
Views:
25
Would SET EXACT OFF be required?
>>>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
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform