Your perferred method of object creation

Everything else that doesn't fall into one of the other PB categories.

Now that it's possible to do both, which method would you rather use for object creation?

#ObjectID = 1 : CreateObject(#ObjectID,Param1,Param2)
0
No votes
#ObjectID = 1 : CreateObject(#ObjectID,Param1,Param2)
0
No votes
ObjectID = CreateObject(#PB_Any,Param1,Param2)
19
41%
ObjectID = CreateObject(#PB_Any,Param1,Param2)
19
41%
Both ways mixed
4
9%
Both ways mixed
4
9%
 
Total votes: 46

Soulfire
User
User
Posts: 23
Joined: Mon Mar 08, 2004 7:17 am

Your perferred method of object creation

Post by Soulfire »

Just curious

"Objects" being anything you can create or open in PB this way, such as windows, gadgets, images, files, memory, etc.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Sorry to mess with your post.. but i added the third option. :)

I mix them both a lot. For example, i create the base GUI with constants,
and all dynamic parts (for example MDI childwindows) are created with
the dynamic system.

As for other 'objects'. It depends on the purpose there. If i just need one or
two, i simply use '0' and '1', but if i need lots of them, i use the #PB_Any stuff.

Timo
quidquid Latine dictum sit altum videtur
Post Reply