Code center > Darwinbots Program Source Code
Types and members
Zelos:
--- Code: ---Private Type location
X As Integer
why As Integer
End Type
Public position As location
--- End code ---
ive done this and it complains, why?
Endy:
--- Quote ---So the code can could care less, but programmers upkeeping your code are apt to become sloppy and not use your type the way you intended.
--- End quote ---
Okay, I think I understand what you're saying. Mainly I was asking so I could see about adding sons, refsons, trefsons.
Ulciscor:
That code works if you use
--- Code: ---Dim position As location
--- End code ---
if you code it in a form, but the code you posted will work fine if put in a module.
Zelos:
oh
Ulciscor:
Indeed....
....
....
Did you understand what I said?? :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version