Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject/CreateObject
Message
From
15/03/2002 07:11:57
 
 
To
15/03/2002 06:51:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00633293
Message ID:
00633305
Views:
16
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform