>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?
Try:
LPARAMETER tnMyID
PUBLIC ctnMyid
ctnMyid = tnMyID
This.DataEnvironment.Cursor1 = "ID_CUST = ctnMyID"
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."