What's the difference between a .pb and .pbi file?

Just starting out? Need help? Post your questions and find answers here.
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

What's the difference between a .pb and .pbi file?

Post by Julian »

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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: What's the difference between a .pb and .pbi file?

Post by ts-soft »

There is no difference, only the i!

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.
Image
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: What's the difference between a .pb and .pbi file?

Post by infratec »

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:

Code: Select all

CompilerIf #PB_Compiler_IsMainfile
 teststuff
CompilereEndIf
Bernd
Last edited by infratec on Fri May 08, 2015 7:19 pm, edited 1 time in total.
Julian
Enthusiast
Enthusiast
Posts: 276
Joined: Tue May 24, 2011 1:36 pm

Re: What's the difference between a .pb and .pbi file?

Post by Julian »

Brilliant, thanks guys, thought I was missing something important ;)
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: What's the difference between a .pb and .pbi file?

Post by TI-994A »

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. :wink:
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 :D
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: What's the difference between a .pb and .pbi file?

Post by skywalk »

You can add to the recognized source file extensions in the Preferences. :wink:
I add *.pbt for pb tool code.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: What's the difference between a .pb and .pbi file?

Post by Golfy »

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

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.
Post Reply