Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange thing with filtering..
Message
From
15/10/2001 12:04:54
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00568449
Message ID:
00568565
Views:
13
Yeah, I'm sure I've selected the correct work area before I save it.. have to wait for tomorrow morning to test what Vlad suggested. What else do you think whould cause this problem?

Jimi

>Are you sure you're on the correct work area when you are saving filter expressen?
>Try to add select MyTable before cFilter = filter().
>
>>hi,
>>
>>I dunno if this is strange or just me, anyway:
>>
>>in MyButton.click():
>>
>>private cFilter
>>cFilter = filter()
>>set filter to
>>
>>do form AnotherForm && would work with other tables in this form
>>
>>select MyTable
>>set relation to blah blah blah
>>set filter to &cFilter
>>thisform.MyGrid.refresh()
>>
>>
>>I use a private variable cFilter to store the current filter setting and try to restore it after another form is executed, but it's failed, the content of the grid in not filtered after the above events..
>>
>>So I tried to do some debugging.. I've added a wait window command in the codes as following:
>>
>>private cFilter
>>cFilter = filter()
>>set filter to
>>
>>do form AnotherForm && would work with other tables in this form
>>
>>select MyTable
>>set relation to blah blah blah
>><b>wait window transform(cFilter)</b>
>>set filter to &cFilter
>>thisform.MyGrid.refresh()
>>
>>
>>The code works now! But no one would show users the filter settings when the program is running, right? What should I do now? Why does my code only work probably with a wait window command?
>>
>>p.s. I have tested by running the program in VFP and by running a compiled .exe, but same things happened.
>>
>>Thanks in advance!
>>Jimi
error(503): file structure failure, signature file corrupted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform