Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing properties of forms
Message
De
01/11/2002 04:08:42
 
 
À
31/10/2002 16:01:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00717312
Message ID:
00717685
Vues:
13
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform