Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with form from VFP7 -> VFP8
Message
De
09/10/2003 15:41:48
 
 
À
09/10/2003 15:23:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00836815
Message ID:
00837081
Vues:
47
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Tamar
>
>
>Look for any labels with Caption set a single = sign. Add a space in front of the =:
>
>=" ="
>
>
>Thank you so much for replying! I am not totally sure what you mean here - sorry to be so dumb. I don't need quotes around the "space-equal sign" combination do I? You just mean that I should simply push a space in front of the equals sign, no quotations characters or anything like that?
>
>Thanks.
>
>Angie

Yes, you would.
thisform.label1.Caption = " ="
A leftmost = in the Caption tells VFP to evaluate the following expression, e.g.
** label1.init()
Local lcx
lcx="hello"
this.Caption = "=lcx"
The label caption will be hello. If the space was in front, e.g., this.Caption = " =lcx", you'd see =lcx when the form runs.

So if there's only an =, then it tries to evaluate nothing, which throws the error, so in the Properties window, it would be
=" ="
and in code, it would be
this.Caption = " ="
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform