Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter( ) and Grid
Message
De
13/09/2001 04:49:45
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00555816
Message ID:
00555828
Vues:
13
Hi Vlad,

No it doesn't work, I have try all go top/refresh/setfocus etc...

I've solved this by putting a style=invisible button on the text, such that I have text display and button events...

Though I'm still curious why the code only work for buttons but not text..

Jimi

>Hi!
>
>Try to change the record pointer after you changed the filter. For example, use 'Go Top' command.
>
>Its also strange for me why code works from buttons...
>
>>hi all,
>>
>>I have a form, which has two textlabel and a grid on it.
>>
>>The grid is to show the content of a table, and each button have their own filter settings. For example:
>>
>>
>>Text1.click()
>>set filter to
>>thisform.MyGrid.refresh()
>>
>>
>>
>>Text2.click()
>>set filter to type=="B"
>>thisform.MyGrid.refresh()
>>
>>
>>Both works fine, the only problem is, if I clicked Text2 and the result is none, and then I click on Text1, there will be no record displayed. But Text1.click() should reset any filter as shown above...
>>
>>Even more strange, if I replace the two textlabel with commandbuttons and copy and paste the click() event codes, it will work just fine! What is the problem with the textlabel?
>>
>>Please help! Thanks a lot!
>>Jimi
error(503): file structure failure, signature file corrupted.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform