It is currently Fri Nov 22, 2019 11:26 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: PureBasic Modules: A Quick Tutorial
PostPosted: Sat Jun 02, 2018 4:07 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 04, 2013 5:28 pm
Posts: 333
Code:
DeclareModule myModule
EndDeclareModule

Module myModule
  Define myVar = 123
EndModule

Debug myModule::myVar   ; == 0 ?



Quote:
However, you'd notice that the resulting output is still zero. Why is this?


The output can't be be zero since the code is not valid.
myVar is local to the module and it's not accessible from the external debug statement.

Less important, but I would add a .f to
Code:
Global myVersionNumber = 1.23

since it's a float in the example after that which is a variation of this one.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Modules: A Quick Tutorial
PostPosted: Sun Aug 26, 2018 12:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jul 08, 2013 8:43 pm
Posts: 243
Wauuuu master TI, thanks for this very comprensive tutorial!!!
As allways PBforum is the best!!
Great community with a lot of gray matter!!

I now can put, halt and catch fire like a module in my HAL9000 :mrgreen: :mrgreen: HAHAHA

THANKS AGAIN TI!!! +1

_________________
If translation=Error: reply="Sorry, Im Spanish": Endif


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye