Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing an Object
Message
 
 
To
05/03/2001 21:12:15
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482058
Message ID:
00482072
Views:
10
>hi nadya,
>
>here's the code
>
 local ObjName, lcFullReference, loNewShape
>IF SEEK(rcode)
>	SCAN WHILE jo_route2.routecode = rcode && Don't use -> use . instead
>		objname = ('T' + jo_route2.locpost)
>		Thisform.Cnt1.AddObject(objname,"Shape")
                lcFullReference="thisform.cnt1."+ObjName
>               if type("lcFullReference")="O" && just to check, if it was added
                * this is actually not needed and I'm not sure, it will work... 
>                * i want to access the created object in this section
                loNewShape=evaluate(lcFullReference)
>               with loNewShape && name expression
>		 .Left = jo_route2.posx
>		 .Top  = jo_route2.posy
>		 .Visible = .T.
>		 .Curvature = 10 
		.FillColor = RGB(255,0,0) && 
>		.FillStyle = 0
>		.Height = 9
>		.Width = 8
>		.ToolTipText = ALLT(STR(.T001.Left)) + ',' + ALLT(STR(.T001.Top)) && ?????
       endif
>	ENDSCAN
>ENDIF
This is off the top of my head and may be not correct...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform