As per subject, what's the difference between a .pb and .pbi file, can't find much about it putting "pbi" into the inbuilt help.
Thanks in advance,
W
What's the difference between a .pb and .pbi file?
Re: What's the difference between a .pb and .pbi file?
There is no difference, only the i!
We use the pbi-file as includefile, but you can also use a pb-file.
We use the pbi-file as includefile, but you can also use a pb-file.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Re: What's the difference between a .pb and .pbi file?
Hi,
it is only for your convenience.
So you can see that it is a file which is normally included and it is (normally) not a standalone program.
Normally means that I (personally) always add a part with test routines or an example:
Bernd
it is only for your convenience.
So you can see that it is a file which is normally included and it is (normally) not a standalone program.
Normally means that I (personally) always add a part with test routines or an example:
Code: Select all
CompilerIf #PB_Compiler_IsMainfile
teststuff
CompilereEndIf
Last edited by infratec on Fri May 08, 2015 7:19 pm, edited 1 time in total.
Re: What's the difference between a .pb and .pbi file?
Brilliant, thanks guys, thought I was missing something important
Re: What's the difference between a .pb and .pbi file?
Besides .pbf files, which are exclusively recognised and run by the Form Designer, PureBasic would actually load and run source code saved in any compatible text-based files, regardless of the file extension.
But that changed with PureBasic v5.3 onwards, I believe, where only .pb, .pbi, .pbp, and .pbf files are recognised.
Just some perspective on PureBasic's file conventions.
But that changed with PureBasic v5.3 onwards, I believe, where only .pb, .pbi, .pbp, and .pbf files are recognised.
Just some perspective on PureBasic's file conventions.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel
Re: What's the difference between a .pb and .pbi file?
You can add to the recognized source file extensions in the Preferences.
I add *.pbt for pb tool code.
I add *.pbt for pb tool code.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: What's the difference between a .pb and .pbi file?
I was missing some help about files format. Here is a supplementary information :
.pb
This is PureBasic normal file.
If you want to edit this file, it's UTF-8 text encoded file. At the end of the file, you'll find comments for compilation
.pbi
This is PureBasic Included file. Shouldn't contains main part of the program but subpart or library. It's a same format file than .pb file.
.pbp
This is PureBasic Project. Contains informations about files used in the project (Project > New Project
If you use Project > New Project, the .pbp file generated is a XML file :
Unfortunately, there are no formals rules on how to use these extensions and IDE is able to run any of them if it's a correct code. Coders have to choose themselve how they'll use these extensions.
.pb
This is PureBasic normal file.
If you want to edit this file, it's UTF-8 text encoded file. At the end of the file, you'll find comments for compilation
Code: Select all
; IDE Options = PureBasic 5.50 (Windows - x64)
; CursorPosition = 288
; FirstLine = 263
; Markers = 613
; EnableXP
; UseIcon = Z:\Partage\Velbus\icones32x32\Lock.ico
; Executable = Z:\Partage\Velbus\Teo\Teo.exe
; Compiler = PureBasic 5.50 (Windows - x86)
; EnableCompileCount = 445
; EnableBuildCount = 81
; EnableExeConstant
; IncludeVersionInfo
; VersionField0 = 0.54
; VersionField1 = 0,54,%BUILDCOUNT
; VersionField2 = ResoneTIC
.pbi
This is PureBasic Included file. Shouldn't contains main part of the program but subpart or library. It's a same format file than .pb file.
.pbp
This is PureBasic Project. Contains informations about files used in the project (Project > New Project
If you use Project > New Project, the .pbp file generated is a XML file :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
Unfortunately, there are no formals rules on how to use these extensions and IDE is able to run any of them if it's a correct code. Coders have to choose themselve how they'll use these extensions.