Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any Better Idea 'bout This ?
Message
From
17/10/1998 12:05:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143298
Message ID:
00147796
Views:
42
>Senna,
>
>try soemthing like this;
>
>
>WITH THIS
> LOCAL mct, lcName
> mct=.PARENT.CONTROLCOUNT
>
> lcName = "POPCLICK"+ALLTRIM(.Name)
> SET CLASSLIB TO genpopper.vcx
> .PARENT.ADDOBJECT(lcName,'popclick',THIS)
> SET CLASSLIB TO
>
> .PARENT.&lcName..VISIBLE=.T.
> .PARENT.&lcName..LEFT=.LEFT+.WIDTH
> .PARENT.&lcName..TOP=.TOP
> .PARENT.&lcName..ENABLED=.T.
> .POPNUM=mct+1
>ENDWITH
>
Or better still, using EVAL().
LOCAL lcName

lcName = "POPCLICK"+ALLTRIM(THIS.Name)
SET CLASSLIB TO genpopper.vcx
THIS.PARENT.ADDOBJECT(lcName ,'popclick', THIS)
SET CLASSLIB TO

WITH EVAL( "THIS.parent." + lcName )
 .VISIBLE=.T.
 .LEFT=.LEFT+.WIDTH
 .TOP=.TOP
 .ENABLED=.T.
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform