[Gambas-user] Object creating properties? ball.speed, ball.solid, etc

2009-04-18 Thread jbskaggs
I need to know how to either create an object to where I can attach a list of variables or how to give myself the ability to do the following: lets say I want to name my special object: ball. I want to be able to create special properties for that ball I can access with .property (or variable)

Re: [Gambas-user] Object creating properties? ball.speed, ball.solid, etc

2009-04-18 Thread Simonart Dominique
jbskaggs a écrit : I need to know how to either create an object to where I can attach a list of variables or how to give myself the ability to do the following: lets say I want to name my special object: ball. I want to be able to create special properties for that ball I can access

Re: [Gambas-user] Object creating properties? ball.speed, ball.solid, etc

2009-04-18 Thread Jussi Lahtinen
'Class CBallModel Public speed as Integer Public solid as Integer Public item as Integer Then just; Dim Ball as New CBallModel 'Set speed to 10 Ball.speed = 10 Is that you were looking for? Jussi On Sat, Apr 18, 2009 at 14:46, Simonart Dominique simonart.domini...@wanadoo.fr wrote: