initialize for user types. how to

acorrias

Member
Licensed User
Longtime User
Hi all.
I'm going to develop a graphic app and I ned to use vectos with tow dimension.

Type vector(x As Double, y As Double).

then I have an array of vectors: Dim A(10) as vector

Could you explain the meaning of initialize and how it set to default values. Is it possible to declare a default value for each type field?
Should I have to initialize only the whole array with a.initialize or should I have to initialize next each array cell with for i=0 to 9: a(i).initialize: next?
alex
 

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi Erel

Could you give me a easy sample about the initialize Sub of the new Type ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…