Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor object in a form and filter property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00119712
Message ID:
00120055
Vues:
22
Hi Jean,

When you do 'Set fitler to ID_Cust = tnMyID', filter is definately applied in the INIT event of the form but when you come out INIT variable / parameter 'tnmyid' is released. This is causing the problem. You should always SET FILT in following manner.

*---------------
INIT of form
*---------------
LPARAMETER tnmyid

*-- Placing Constant value instead of variable reference
thisform.dataenvironment.cursor1.filter="ID_Cust = " + STR(tnMyID)

Try it.
Good Luck.

Bye
Jayesh


>I want to use the filter property of a cursor in the D.E. but I cannot set the property filter in the init of the form with the value I get from the parameter because the cursor is already open.
>
>When I do thisform.dataenvironment.cursor1.filter="ID_Cust = tnMyID"
>in the init of the form the cursor do not use the filter.
>
>I have to do "Set fitler to ID_Cust = tnMyID"
>
>How can we use the filter property?
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform