Page 1 of 1

PureBasic List Of Commands

Posted: Fri Aug 13, 2004 8:33 am
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?

Posted: Fri Aug 13, 2004 9:36 am
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.

Posted: Fri Aug 13, 2004 12:09 pm
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.

Posted: Fri Aug 13, 2004 12:48 pm
by Kale
In the compilers dir of the full instal you will find these text files:
APIFunctionListing.txt
PBFunctionListing.txt
containing all supported functions :)

Posted: Fri Aug 13, 2004 1:53 pm
by blueznl
are these two files always up to date with every new version?

Posted: Fri Aug 13, 2004 2:00 pm
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

..

Posted: Fri Aug 13, 2004 4:12 pm
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

Re: PureBasic List Of Commands

Posted: Mon Jan 03, 2011 9:47 pm
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

Re: PureBasic List Of Commands

Posted: Tue Jan 04, 2011 12:00 am
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","")

Re: PureBasic List Of Commands

Posted: Tue Jan 04, 2011 12:16 am
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

Re: PureBasic List Of Commands

Posted: Tue Jan 04, 2011 12:34 am
by skywalk
Where are the Constants stored:?:
It would be cool if it was this simple -> WriteProgramStringN(Compiler, "CONSTANTLIST")

Re: PureBasic List Of Commands

Posted: Tue Jan 04, 2011 10:31 am
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

Re: PureBasic List Of Commands

Posted: Thu Jan 06, 2011 12:52 am
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.