Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Value from one form to anther.
Message
From
07/02/2002 06:10:13
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
07/02/2002 05:07:22
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00615925
Message ID:
00616484
Views:
22
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform