Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using #define constants in Label caption??
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00091334
Message ID:
00091397
Views:
25
Peter,

The problem is that FoxPro doesn't actually generate code to create your class. I assume the code you included in your message is from the class browser. This code is generated by the class browser, not by VFP when it compiles or runs your class. Constants are replaced when your method code is compiled, but not in property assignments in a VCX.

It should work if you define the class in code.

The suggestion to put an assignment in the Init() method should work
>>>Peter Robinson
>>
>>If you define class in programm code it's working.
>>In VCX, SCX - not. May be BUG ???
>>
>>One way for VCX, SCX: setting Label3.Caption = (...) in Init() method,
>>must operate.
>>
>>Alexander Grigorjev.
>
>
>Alexander, do you know for a fact that this would work in a programatically defined class?
>
>I will try your suggestion about setting the caption in the Init() method. I don't have an immediate need for this feature. I was curious to see if it would work.
>
>Are you Russian?
>
>Peter
Previous
Reply
Map
View

Click here to load this message in the networking platform