Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label assignment throws error 1925
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Label assignment throws error 1925
Divers
Thread ID:
00915060
Message ID:
00915060
Vues:
56
Who knows about this?

It appears that the character "=" cannot be assigned to a label.
Example:
THISFORM.Label1.Caption = "="

The error message is "Unknown member LABEL1." and the error no is 1925.

In versions prior to 8.0, inspection of my code shows that I must have known about this and used the workaround:

cValue = "="
THISFORM.Label1.Caption = cValue

Unfortunately, I have no recollection of whether this was at 6.0 or 7.0. This does not now work, nor do:
THISFORM.Label1.Caption = '='
THISFORM.Label1.Caption = [=]
THISFORM.Label1.Caption = CHR(61)

Any clues?

The problem statement occurred deep in 100,000 lines of VFP8 code migrated from VFP7 and I feel lucky to find it after 3 months of testing.

John Burton
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform