Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject/CreateObject
Message
De
15/03/2002 07:11:57
 
 
À
15/03/2002 06:51:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00633293
Message ID:
00633305
Vues:
15
>>>See the example in my FAQ #8110, for a starting point. The FAQ gives you the basic idea; from there, it should be easy to continue.
>>>
>>>HTH, Hilmar.
>>
>>That's great thanks.
>
>Perhaps 'twas the .Visible part you were missing. Added objects (as well as forms, instanciated with CreateObject()) automatically have .Visible = .F.; this allows you to manipulate the visual properties without the user seeing objects jumping around on the screen.
>
>Hilmar.

No, I'd got it working all working with AddObject, but was generating unique names, it didn't occur to me that an array could be used in AddObject - so I changed to CreateObject & .Visible has no effect. I'd only ever used CreateObject for non-display objects before - I just assumed that they could be made visible in the same way.

As for cleanup (re. your reply to Armin) - I thought that was only necessary if CreateObject was used, if AddObject is used then I thought it was automatically taken care of, at least I've never had problems without cleaning up after using AddObject.
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform