Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Form
Miscellaneous
Thread ID:
00107493
Message ID:
00107501
Views:
32
>>I have already set the datasession to 2-private, but it doesn't work.
>>
>>let me explain to you :
>>
>>I have only one form but I want to open the form more than one because each form
>>was filtered with some filter condition, for example :
>>
>>- I open the form with this condition : Set filter to Sales='1997'..
>>- I minimize the form and I run it again but with other conditon for eg.
>> Set filter to Sales='1998' ..
>>
>>The problem is : when I go back to the 1st form ( filtered with sales='1997' )
>>filtered condition was changed with the last form (sales='1998')
>>
>>pf. the form contains the grid control
>>
>>
>>can you explain to me, please ..?
>
>Where did you open the tables? It should be in the Data Environment. You can also use the filter property of the Cursor object in the DE.

BTW, what you should do like this:

Create PARAMETER to handle your filter value at Init Event.
Create custom property and assign the parameter value into it, so that your Init Event will look like this:
 LPARAMETERS nyear
            Thisform.pnyear = nYear
            Select Table 
            SET FILTER TO table.year = Thisform.pnyear
IF using Data Environment
Thisform.DataEnvironment.Cursor1.Filter = "table.year = Thisform.pnyear"
Syntax in calling the form would be:
DO FORM myformname WITH 1998
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform