Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing an Object
Message
 
 
À
05/03/2001 21:12:15
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00482058
Message ID:
00482072
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform