Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label assignment throws error 1925
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Label assignment throws error 1925
Miscellaneous
Thread ID:
00915060
Message ID:
00915060
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform