PureBasic List Of Commands

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 1208
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

PureBasic List Of Commands

Post by Randy Walker »

I found this link http://www.purebasic.com/documentation/ looking for a list of commands. If you go to the bottom of that page, you find a "list of commands" link. Going to that page you find commands listed in alphabetical order.

I noticed some commands listed on that page are linked to a blank page. Most take you to a page showing a description and syntax if you click on them. Some take you to a blank page so I'm guessing that if the command is listed, then PureBasic uses that command but, maybe nobody got around to completing the description syntax page for that command.

Does anyone know if that might be an accurate guess?
Last edited by Randy Walker on Fri Aug 13, 2004 12:13 pm, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Why not just use the list of commands thats in the helpfile that comes with pb?

when you open the help file, in the big window where all the text is, go down to the bottom and there it is.

besides, the online version of manual you found where for 3.80.
Its the excact same as included in the offline manual, thats for 3.91.
Randy Walker
Addict
Addict
Posts: 1208
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Post by Randy Walker »

thefool wrote:Why not just use the list of commands thats in the helpfile that comes with pb?
Well, it goes like this. First I created a System Restore, then I downloaded every Windows basic listed at http://basic.mindteq.com/ that offered a full package; Interpreter and compiler that didn't create bloatware.

After testing and settling on PureBasic, I went and restored the backup System Restore and deleted all the installation folders.

Then I went and placed my online order (coincedently on the same day Fred left for vacation) on the automated online order system, which in turn failed to give me my account info. Waiting for Fred to get back so I can get version 3.91 and do a clean install.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

In the compilers dir of the full instal you will find these text files:
APIFunctionListing.txt
PBFunctionListing.txt
containing all supported functions :)
--Kale

Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

are these two files always up to date with every new version?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5960
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

PBFunctionListing.txt is updated on each IDE start, and it also contains
all userlib functions that are currently available. So add a new userlib,
restart the IDE and the functions will be in there.

APIFunctionsListing.txt is not autogenerated, because the available API functions
can only change on a new PB version anyway.

Timo
quidquid Latine dictum sit altum videtur
User avatar
NoahPhense
Addict
Addict
Posts: 2000
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

freak wrote:PBFunctionListing.txt is updated on each IDE start, and it also contains
all userlib functions that are currently available. So add a new userlib,
restart the IDE and the functions will be in there.
Wow! I did not know that..

Thanks Timo

- np
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5638
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: PureBasic List Of Commands

Post by Kwai chang caine »

Hello at all

Since several version the "PBFunctionListing.txt" not exist :(
Have you a way to generate personal "PBFunctionListing.txt" or read all the PB command now, with the new version v4.51 ???

Thanks and good day
ImageThe happiness is a road...
Not a destination

PureBasic French Forum
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Re: PureBasic List Of Commands

Post by yrreti »

Hi Kwaï
I just threw this together quickly, so you can modify as needed, and of course post improvements
here if you like. When run, you just need to select your Compiler directory, and it creates a file in
your C:\ drive named Functionslist.txt. Then it opens it up in notepad.

Code: Select all

EnableExplicit

Define.s TheCompiler

;example: D:\PureBasic4.5\Compilers
TheCompiler =  PathRequester("Select please the path for the PB-compiler of your version!", GetEnvironmentVariable("ProgramFiles"))
If TheCompiler
  TheCompiler + "pbcompiler.exe"
EndIf
If Not TheCompiler Or FileSize(TheCompiler) < 0
  End
EndIf

Define.i i, j

Define.i Compiler = RunProgram(TheCompiler, "/STANDBY", "", #PB_Program_Open | #PB_Program_Read | #PB_Program_Write | #PB_Program_Hide)
NewList TheFunctions.s()
If Compiler
  If IsProgram(Compiler)
    Repeat
    Until ReadProgramString(compiler) = "READY"
    WriteProgramStringN(Compiler, "FUNCTIONLIST")
    j = Val(ReadProgramString(Compiler))
    For i = 1 To j
      AddElement(TheFunctions())
      TheFunctions() = ReadProgramString(Compiler)
    Next
    WriteProgramStringN(Compiler, "END")
    CloseProgram(Compiler)
  EndIf
EndIf

Define.i found
CreateFile(1,"C:\Functionslist.txt")
ForEach TheFunctions()
  WriteStringN(1, TheFunctions())
Next
CloseFile(1)

RunProgram("notepad.exe","C:\Functionslist.txt","")
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: PureBasic List Of Commands

Post by Vera »

Hello Kwaï,

some time ago ts-soft posted two small codes to read out the available compilerfunctions. The first (short) code simply returns a debug-output of all function-names, whereas the second code compares two comilers and returns (file-output) a) new functions & describtions and b) the whole (new) list (just names)
first: http://www.purebasic.fr/german/viewtopi ... 19#p261819
second: http://www.purebasic.fr/german/viewtopi ... 39#p269839

In case you need the pure lists (without included 'userfunctions') for comparison you can grab these here:
http://vspure.bplaced.net/dls/compilerFunktionen450.txt
(just change the number in the link to get the others: 410 ~ 420 ~ 431 ~ 441)

btw: version 4.51 didn't introduce new functions

@ yrreti
thanks for the third version :)

cheers ~ Vera
User avatar
skywalk
Addict
Addict
Posts: 4303
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic List Of Commands

Post by skywalk »

Where are the Constants stored:?:
It would be cool if it was this simple -> WriteProgramStringN(Compiler, "CONSTANTLIST")
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5638
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: PureBasic List Of Commands

Post by Kwai chang caine »

Thanks a lot my friends, it's exactely what i search 8)

Sure the idea of skywalk is also interesting, but obviously....i not have the answer...like usually, kcc is always KCC :lol:

I wish you a very good day :D
ImageThe happiness is a road...
Not a destination

PureBasic French Forum
Randy Walker
Addict
Addict
Posts: 1208
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: PureBasic List Of Commands

Post by Randy Walker »

yrreti wrote:Hi Kwaï
I just threw this together quickly...

Code: Select all

EnableExplicit

Define.s TheCompiler

;example: D:\PureBasic4.5\Compilers
TheCompiler =  PathRequester("Select please the path for the PB-compiler of your version!", GetEnvironmentVariable("ProgramFiles"))
If TheCompiler
  TheCompiler + "pbcompiler.exe"
EndIf
If Not TheCompiler Or FileSize(TheCompiler) < 0
  End
EndIf

Define.i i, j

Define.i Compiler = RunProgram(TheCompiler, "/STANDBY", "", #PB_Program_Open | #PB_Program_Read | #PB_Program_Write | #PB_Program_Hide)
NewList TheFunctions.s()
If Compiler
  If IsProgram(Compiler)
    Repeat
    Until ReadProgramString(compiler) = "READY"
    WriteProgramStringN(Compiler, "FUNCTIONLIST")
    j = Val(ReadProgramString(Compiler))
    For i = 1 To j
      AddElement(TheFunctions())
      TheFunctions() = ReadProgramString(Compiler)
    Next
    WriteProgramStringN(Compiler, "END")
    CloseProgram(Compiler)
  EndIf
EndIf

Define.i found
CreateFile(1,"C:\Functionslist.txt")
ForEach TheFunctions()
  WriteStringN(1, TheFunctions())
Next
CloseFile(1)

RunProgram("notepad.exe","C:\Functionslist.txt","")
This would make a great piece of sample code to add to PureBasic Help -- maybe a link at the bottom of the "[+] Reference Manual" page.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply