Loading Procedure Declares -vs- XIncludeFile .pbi

Just starting out? Need help? Post your questions and find answers here.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Loading Procedure Declares -vs- XIncludeFile .pbi

Post by VB6_to_PBx »

Loading Procedure Declares -vs- XIncludeFile .pbi

what's the correct and best sequence method to use ??

Load Declares before XIncludeFile .pbi files

or

Load XIncludeFile .pbi files before Declares

or its does not matter which method ??

Pros or Cons ?
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
skywalk
Addict
Addict
Posts: 4220
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Loading Procedure Declares -vs- XIncludeFile .pbi

Post by skywalk »

It only matters if you use Declares.
Meaning, you don't position Procedures in order of call within your pbi.
I have only a handful of Declares but many include files, and a few ::modules.
I use xxx_lib.pbi, yyy_lib.pbi, etc. approach.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply