>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--