Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFilter()
Message
 
À
15/02/2003 06:43:40
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Divers
Thread ID:
00753658
Message ID:
00753677
Vues:
36
Isn't it great when it works ???
Good job I learned the 2 most important words in english. "Please" and "Thank you" (I think these make 3). So, help yourself with lots of the 2 last ones.


>You could pass a literal date string or the date control's source value (tablename.datefieldname). When you have set the filter, just refresh the grid and all should be well.

Using the Select, it seems I must use it evey time to refresh the filter. If I use the select once, lets say in the AfterOpen, only refreshing the grid in the control's AfterChange won't have any effects. The select won't create a filter, right ? I need to Select every time the Control's AfterChange fires. OK ?


Another thing.

>OK. The SetFilter method is not really appropriate on this occasion.

I just tried to use the SetFilter in this way :
m.oCursor.SetFilter('dtos(DateFieldName) = DTOS(thisform.dDate)')
and I get :
Visual FoxPro 07.00.0000.9465 for Windows [Jan  4 2002 02:58:33] Product ID 55181-015-6393293-03620
CodeMine 7.0
Error #1938 in Setfilter line 8
"SET FILTER TO &cFilter"
Object is not contained in a FORM.
When would be the right time to use it ? And how would I pass the values ?

THANK YOU.
Ivan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform