Author Topic: Types and members  (Read 8440 times)

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Types and members
« Reply #15 on: November 02, 2005, 02:11:55 AM »
Code: [Select]
Private Type location
X As Integer
why As Integer
End Type
Public position As location
ive done this and it complains, why?
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Types and members
« Reply #16 on: November 02, 2005, 02:35:35 AM »
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.

Okay, I think I understand what you're saying. Mainly I was asking so I could see about adding sons, refsons, trefsons.

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Types and members
« Reply #17 on: November 02, 2005, 02:36:35 AM »
That code works if you use

Code: [Select]
Dim position As location
if you code it in a form, but the code you posted will work fine if put in a module.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Types and members
« Reply #18 on: November 02, 2005, 02:50:12 AM »
oh
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Types and members
« Reply #19 on: November 02, 2005, 02:51:43 AM »
Indeed....

....

....

Did you understand what I said?? :D
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Types and members
« Reply #20 on: November 02, 2005, 09:34:26 AM »
Modules and forms have quirks that way.  Never understood why.