Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing properties of forms
Message
From
01/11/2002 04:08:42
 
 
To
31/10/2002 16:01:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00717312
Message ID:
00717685
Views:
12
>>>>Hi, I tried to change proterties of form-objects via memo-field. Forexample writied to memo "Thisform.Pageframe.Basic.Field1.Visible=.F.". In the program then tooked it to a variable and tried as follow :
>>>>
>>>>fld="Thisform.Pageframe.Basic.Field1.Visible=.F."
>>>>&fld
>>>>
>>>>Does anybody know, what could be wrong?
>>>
>>>What error message do you get?
>>
>>There came no messages. I took &fld to a variable, and it was .F., like this :
>>reply=&Fld --> reply got value .F.
>
>That is quite logical. Think about it:
>
>
>fld = "Thisform.Pageframe.Basic.Field1.Visible=.F."
>reply = &fld
>
>
>The macro substitution replaces fld with its contents, so you have:
>
>
>reply = fld = Thisform.Pageframe.Basic.Field1.Visible=.F.
>
>
>The right equal sign gets evaluated first, by doing a comparison. Assuming .Visible is true, you get
>
>
>fld = .T. = .F.
>
>
>Now, the right side is evaluated - this simplifies to:
>
>
>fld = .F.
>
>
>So, of course, .F. is stored to the variable.
>
>If you want to run the command, all you need is:
>
>
>fld = "Thisform.Pageframe.Basic.Field1.Visible=.F."
>reply = &fld
>
>
>without trying to assign the result to any variable.
>
>HTH, Hilmar.


Ok, it is working now. Thanks for your help. The problem was in a grid. I tried to change the order of the columns this way.

Tapani
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform