Syntax Home 
Functions
Appendixes

;+ ...
;* ...
;$ ...

 

Function MyFunction#(Var2,Var2)
    Code
    Code
    Result$=OneOfMyOwnFunctions$(Var3)
(Is one of our own - so we must inform the system that it needs it)
    a#=MaybeAnother#()
(and this is done after End Function
End Function
;+ OneOfMyOwnFunctions
;+ MaybeAnotherFunction
;* GlobalsConstantsHeaders.bbp
(Placed in the Directory Funcs\Globals - will be included at top of File)
;$ NewDirectory
If not exists, a new Directory will be created inside the WorkDirectory
;!!!AnExe.exe
(see below)

Note the Space in the line after End Functions between ;+ and the FunctionName.
No $, % or # added to the Filename. This Function will be saved with the Filename: MyFunction.bb
The Documentation that will be added will be explained as soon as the Program is available.

MyFuncs! MyFuncs!

This gets there in the Code where you want to have the Include-File located - If this is missing the Include will be in the first line of the bb-file.

Template

 

Template Keycodes

Replaces that line with Include Blitzpath$+"Funcs\Input\Keycodes.bbp"

Uses

 

Uses InitSkybox

Assumes that there is a File InitSkybox.bbp in the Funcs\Templates-Folder. The Precompiler will copy that code direct into the bb-File. Useful for Code-Snippets that are used very often - Write them once and use them in other Programs and Projects.

;!!!

 

;!!!EXEs\MyExeFile.exe

;!!!DLLs\MyDLL.dll

;!!!System\BMPs\AButton.bmp

Keeping it short: Copy the File from the Funcs-Directory to the Work-Directory

If the Function needs a DLL or an EXE or a File of any kind you signalize that with this instruction. The Compiler will Copy the file from Funcs\EXEs or Funcs\DLLs into the Project-Folder where the Source is and where the final Exe will be created.

;!c

 

;!c The Author

Creates a list with the Authors of the Functions and Templates you have used in your Program. So you do not forget anyone you want to mention in the Credits-List.

 

... To be continued ...