Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weirdo Property Q
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00697963
Message ID:
00697965
Views:
13
>DEFINE CLASS lblMy as Label
> Left=4
> Top=25*lnCntr
>ENDDEFINE
>
>1) Why can I set the .Left default here, but not in the visual class designer?


You can but lnCntr has to be in scope. So it would be better to use class property instead of lnCntr. For example, if class has property nCntr than you can put following expresion in the label Top property in the Class Designer =25*This.nCntr.

>
>2) A step further: When I know that the lnCntr var will have a valid value when I ADDOBJECT("lbl1","lblMy"), why can´t I put the default that way or how can I?

The same here.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform