Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Value from one form to anther.
Message
De
07/02/2002 06:10:13
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
07/02/2002 05:07:22
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00615925
Message ID:
00616484
Vues:
23
Hi,

I was completely out of my mind yesterday evening ::(

Assuming in the class you input the filter you have a textbox for input the value for myField and a checkbox to toggle the filter On / Off
PROCEDURE GetFilter
 PARAMETERS;
  taFilter

 DIMENSION taFilter(2)

 taFilter(1) = THIS.TextBox1.VALUE		&& the filter Value
 taFilter(2) = THIS.CheckBox1.VALUE		&& Switch

ENDPROC
In The Form the need to be filtered (Normaly a Click
PROCEDURE aButton.CLICK()
 LOCAL;
  loFilterForm,;
  laFilter
 ...
 loFilterForm = CREATEOBJECT('FilterForm')
 loFilterForm.SHOW(1)
 DIMENSION laFilter(1)

 loFilterForm.GetFilter(@laFilter)

 loFilterForm.RELEASE()
 loFilterForm = .NULL.

 IF laFilter(2) THEN
  SET FIELDS myField=laFilter(2)
 ENDIF
 ...
ENDPROC
HTH

Agnes
>well, do you have a solution for my issue ?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform