Jump to content

Futurebasic/Language/Reference

From Wikibooks, open books for an open world

Language Reference

[edit | edit source]
[[/Define|#define]] newTypeName as oldTypeName<br />
[[Futurebasic/language/reference/Define|#define]] newTypeName as {Pointer to|@|^|.} oldTypeName<br />
[[/Define|#define]] newTypeName as {Handle to|@@|^^|..} oldTypeName<br />
[[/poundif|#if]] condition
::[statementBlock1]
::[ [[/poundelse|#else]]
::[statementBlock2]]
::[[/poundendif|#endIf]]
functionAddress&amp; = [[/fnaddress|@fn]] functionName
 positiveValue = [[/abs|abs]] (expr)<br>
radianAngle# = [[/acos|acos]] (expr)<br>
positiveResult# = [[/acosh|acosh]] (expr)<br>
result = exprA [[/and|and]] | &amp;&amp; expB <br>
annuityFactor# = [[/annuity|fn annuityY#]] (rate, periods)<br>
[[/appearance_button|appearance button]] [#] [-] id&amp; [, [ state ] [, [ value ] [, [ min ] [, [ max ] [, [ title$ ] [, [ rect ] [, [ type ] ] ] ] ] ] ]<br>
[[/appearance_window|appearance window]] [#] [-] id&amp; [, [ title$ ] [, [ rect ] [, [ windowClass ] [, [ windowAttributes ] [, [ FBAttributes ] ] ] ] ] ]<br>
[[/append|append]] [#] fileID <br>
[[/apple_menu|apple menu]] string$ <br>
string$ = [[/appleeventmessage|AppleEventMessage$]]<br>
ASCIIcode% = [[/asc|asc]] (string$)<br>
ASCIIcode% = [[/asc|asc]] (container$$)<br>
radianAngle# = [[/asin|asin]](expr)<br>
result# = [[/asinh|asinh]](expr)<br>
radianAngle# = [[/atan|atan]](expr)<br>
result# = [[/atanh|atanh]](expr)<br>
radianAngle# = [[/atn|atn]](expr)<br>
[[/autoclip|autoclip]] [=] booleanExpr     <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span>
[[/beep|beep]]<br>
[[/begin_enum|begin enum]] [start [,inc]]<br>
[[/begin_globals|begin globals]] <br>
[[/begin_record|begin record]] typeName <br>
[[/begin_union|begin union]] <br>
[[/beginassem|BeginAssem]] <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
binString$ = [[/binstring|bin$]] (expr)<br>
bitValue = [[/bit|bit]] (bitPos)<br>
[[/blockmove|BlockMove]] sourceAddr&amp;, destinationAddr&amp;, numberBytes&amp; <br>
[[/box|box]] [ fill ] [h, v] to h1, v1 [ to h2, v2 ...]<br>
buttonState = [[/button_function|BUTTON]] [ (ID [, selector ]) ]<br>
buttonHandle&amp; = [[/buttonamp|BUTTON&amp;]] (btnID&amp;|%)<br>
[[/button_statement|BUTTON]] [#] btnID, state, title, btnRect [, btnType ]<br>
[[/button_close|BUTTON CLOSE]] [#] btnID <br>
pString$ = [[/buttontextstring|FN BUTTONTEXTSTRING$]] (bRefNum&amp;)
[ [[/call|CALL]] ] toolboxProcName [ modifiers ] [ ([ { #addrExpr1&amp; | arg1 } [,{ #addrExpr2&amp; | arg2 }...] ]) ]<br>
CASE - See the [[/select_case|SELECT CASE]] statement<br>
character$ = [[/chrstring|CHR$]] (expr)<br>
[[/cfindex|CFINDEX.INCL]]<br>
ignore = [[/cfindexsort|FN CFINDEXSORT]] (whichIndex)<br>
[[/circle|CIRCLE]] [ FILL ] x, y, radius [ { TO | PLOT } startAngle, angleSize ]<br>
[[/clear_statement|CLEAR]] <br>
[[/clear_index|CLEAR]] bytes&amp; [, indexID ]<br>
[[/clear_index|CLEAR]] numElements&amp;, indexID, eltSize<br>
[[/clear_index|CLEAR]] -1<br>
[[/clear_index|CLEAR INDEX$]] [ indexID ]<br>
CLEAR LOCAL - See the [[/local|LOCAL]] statement<br>
[[/clear_lprint|CLEAR LPRINT]] <br>
[[/clear_statement|CLEAR]] <br>
[[/close_folder|CLOSE FOLDER]] wdRefNum% <br>
[[/close_lprint|CLOSE LPRINT]] <br>
[[/cls|CLS]] [ LINE | PAGE ] <br>
[[/color_window|COLOR WINDOW]] {_true | _false} <br>
[[/color|COLOR]] [=] colorExpr <br>
COMPILE END IF - See the [[/compile_long_if|COMPILE LONG IF]] statement <span style="color:blue;font-weight:bold;">/* Not Supported in FBtoC. See [[/poundendif|#ENDIF]] */</span>
[[/compile_long_if|COMPILE LONG IF]] condition <span style="color:blue;font-weight:bold;">/* Not Supported in FBtoC. See [[/poundif|#IF]] */</span><br>
::[statementBlock1]<br>
::[ [[/compile_long_if|COMPILE XELSE]] <br>
::[statementBlock2] ]<br>
::[[/compile_long_if|COMPILE END IF]]
[[/compile_shutdown|COMPILE SHUTDOWN]] &quot;Optional Quoted Remark&quot; <br>
[[/compile|COMPILE]] [ tickCount ] [, compileFlags ]<br>
COMPILE XELSE - See the [[/compile_long_if|COMPILE LONG IF]] statement <span style="color:blue;font-weight:bold;">/* Not Supported in FBtoC. See [[/poundelse|#ELSE]] */</span><br>
flag&amp; = [[/compileflags|COMPILEFLAGS]] (_compileConstant) <br>
versionNum&amp; = [[/compilerversion|COMPILERVERSION]]<br>
compoundFactor# = [[/compound|FN COMPOUND#]] (rate, periods)<br>
[[/compress_dynamic|COMPRESS DYNAMIC]] arrayName <br>
[[/constant_declaration|Constant declaration]] : _constantName = staticExpr <br>
[[/coordinate_window|COORDINATE WINDOW]] <br>
theCosine# = [[/cos|COS]] (expr)<br>
result# = [[/cosh|COSH]] (expr)<br>
currentLine = [[/csrlin|CSRLIN]] <br>
[[/cursor|CURSOR]] [=] intExpr (Standard BASIC)<br>
[[/cursor|CURSOR]] cursorID [, cursorType ] (Appearance Runtime)<br>
var&amp; = [[/cvi|CVI]] (string$)
[[/data|DATA]] item1 [, item2 ...]<br>
dateString$ = [[/datestring|DATE$]]<br>
[[/dec|DEC]] (intVar)<br>
[[/dec_long|DEC]] { LONG | WORD | BYTE } (addr&amp;)<br>
[[/def_apndlng|DEF APNDLNG]] (longExpr, handle&amp;)<br>
[[/def_apndstr|DEF APNDSTR]] (string$, STR#resourceHndl&amp;)<br>
[[/def_blockfill|DEF BLOCKFILL]] (startAddr&amp;, numBytes&amp;, byteValueExpr)<br>
[[/def_border|DEF BORDER]] (twoPixelBorder, { rect | #rectAddr&amp; })<br>
[[/def_btnrect|DEF BTNRECT]] ({ rect | #rectAddr&amp; }, buttonID%)<br>
[[/def_buttonhelpdisplay|DEF BUTTONHELPDISPLAY]] (bntID)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span> <br>
[[/def_buttonhelpsettext|DEF BUTTONHELPSETTEXT]] (btnID%|&amp;, helpMessage$)<br>
[[/def_buttonhelpshow|DEF BUTTONHELPSHOW]] (showHideFlag)<br>
[[/def_cbox|DEF CBOX]] ({ rect | #rectAddr&amp; }, stringVar$)<br>
[[/def_changedresource|DEF CHANGEDRESOURCE]] (rHndl&amp;) <br>
[[/def_checkoneitem|DEF CHECKONEITEM]] (menuID%, itemID%)<br>
[[/def_clearhandle|DEF CLEARHANDLE]] (handle&amp;)<br>
[[/def_createresfile|DEF CREATERESFILE]] (fileName$)<br>
[[/def_cycle|DEF CYCLE]] (min%, max%, var%)<br>
[[/def_debugnumber|DEF DEBUGNUMBER]] (numericExpression)<br>
[[/def_debugstring|DEF DEBUGSTRING]] (stringExpression)<br>
[[/def_disposeh|DEF DISPOSEH]] (handle&amp;)<br>
[[/def_drawimagefile|DEF DRAWIMAGEFILE]] (fName$, vRef%)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/def_dynamicinsertitems|DEF DYNAMICINSERTITEMS]] (gMyDynamicArray,Where&amp;,HowMany&amp;,FillPtr&amp;)<br>
[[/def_dynamicremoveitems|DEF DYNAMICREMOVEITEMS]] (gMyDynamicArray,First&amp;,HowMany&amp;,SavePtr&amp;)<br>
[[/def_embedbutton|DEF EMBEDBUTTON]] (childButtonID&amp;, parentButtonID&amp;)<br>
[[/def_flash|DEF FLASH]]<br>
[[/def_fn_expr|DEF FN]] functionName [(var1 [, var2 ...])] = expr <br>
[[/def_fn_prototype|DEF FN]] functionName [ (var1 [, var2 ...]) ]<br>
[[/def_fn_using|DEF FN]] functionName [(var1 [, var2 ...])] [[/def_fn_using|USING]] FNaddress&amp; <br>
[[/def_getbuttondata|DEF GETBUTTONDATA]] (bRefNum&amp;, part%, tagType&amp;, maxSize&amp;, dataPtr&amp;, actualSize&amp;)<br>
[[/def_getbuttontextselection|DEF GETBUTTONTEXTSELECTION]] (bRefNum&amp;, selStart, selEnd)<br>
[[/def_getimagefilerect|DEF GETIMAGEFILERECT]] (fName$,vRef%,r AS RECT)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/def_cbox|DEF LBOX]] ({ rect | #rectAddr&amp; }, stringVar$)<br>
[[/def_lcase|DEF LCASE]] (string$)<br>
[[/def_lcopy|DEF LCOPY]]<br>
[[/def_len|DEF LEN]] [=] stringVarLength   <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/def_longblockfill|DEF LONGBLOCKFILL]] (startPtr&amp;, numBytes&amp;, byteValExpr)<br>
[[/def_lprint|DEF LPRINT]] <br>
[[/def_newwindowposition|DEF NEWWINDOWPOSITIONMETHOD]] (pMethod)<br>
[[/def_open|DEF OPEN]] [=] typeCreatorString$ <br>
[[/def_orsicn|DEF ORSICN]] (x%, y%, sicnID%)<br>
[[/def_page|DEF PAGE]] <br>
[[/def_plotsicn|DEF PLOTSICN]] (x%, y%, sicnID%)<br>
[[/def_printeditfield|DEF PRINTEDITFIELD]] (efNum&amp; | %)<br>
[[/def_cbox|DEF RBOX]] ({ rect | #rectAddr&amp; }, stringVar$)<br>
[[/def_removestr|DEF REMOVESTR]] (str#handle&amp;, item%)<br>
[[/def_setbuttondata|DEF SETBUTTONDATA]] (bRefNum&amp;, part%, tagType&amp;, size&amp;, dataPtr&amp;)<br>
[[/def_setbuttonfocus|DEF SETBUTTONFOCUS]] (bRefNum&amp;)<br>
[[/def_setbuttonfontstyle|DEF SETBUTTONFONTSTYLE]] (bRefNum&amp;, controlFontRecord)<br>
[[/def_setbuttontextselection|DEF SETBUTTONTEXTSELECTION]] (bRefNum&amp;, selStart, selEnd)<br>
[[/def_setbuttontextstring|DEF SETBUTTONTEXTSTRING]] (bRefNum&amp;, pString$)<br>
[[/def_setdoublebyte|DEF SETDOUBLEBYTE]]  <span style="color:blue;"> /* '''Not Supported in FBtoC''' */</span><br>
[[/def_setsinglebyte|DEF SETSINGLEBYTE]]   <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/def_setwindowbackground|DEF SETWINDOWBACKGROUND]] (_backgroundConstant,applyNowBool)<br>
[[/def_setwindowbackground|DEF SETWINDOWBACKGROUND]] (rgbColor,applyNowBool) <br>
[[/def_shadowbox|DEF SHADOWBOX]] ({ rect | #rectAddr&amp; })<br>
[[/def_showpop|DEF SHOWPOP]] ({ rect | #rectAddr&amp; })<br>
[[/defstr_long|DEFSTR]] { [[/defstr_long|LONG]] | [[/defstr_long|WORD]] | [[/defstr_long|BYTE]] }<br>
[[/def_tab|DEF TAB]] [=] fieldWidth <br>
[[/def_titlerect|DEF TITLERECT]] (title$, titlePosition%, { rect | #rectAddr&amp; })<br>
[[/def_toggle|DEF TOGGLE]] ({ var% | #intPtr&amp; })<br>
[[/def_transitionrect|DEF TRANSITIONRECT]] (left%, top%, right%, bottom%)<br>
[[/def_truncate|DEF TRUNCATE]] ({ var$ | #stringPtr&amp; })<br>
[[/def_using|DEF USING]] [=] intlMoneyFormat&amp; <br>
[[/def_windowcategory|DEF WINDOWCATEGORY]] (wNum&amp;, category&amp;)<br>
[[/def_windowreposition|DEF WINDOWREPOSITION]] (wRefNum&amp;, parentRefNum&amp;, positionMethod)<br>
[[/defsng|DEFSNG]] letter1 [- thruLtr1 ] [, letter2 [- thruLtr2 ]...]<br>
[[/defsng|DEFDBL]] letter1 [- thruLtr1 ] [, letter2 [- thruLtr2 ]...]<br>
[[/defsng|DEFSTR]] letter1 [- thruLtr1 ] [, letter2 [- thruLtr2 ]...]<br>
[[/defsng|DEFINT]] letter1 [- thruLtr1 ] [, letter2 [- thruLtr2 ]...]<br>
[[/defsng|DEFLONG]] letter1 [- thruLtr1 ] [, letter2 [- thruLtr2 ]...]<br>
[[/delay|DELAY]] count <br>
evnt% | &amp; = [[/dialog_function|DIALOG]] (0)<br>
id% | &amp; = [[/dialog_function|DIALOG]] (evnt)<br>
[[/dialog_statement|DIALOG]] = expr% <br>
[[/dim|DIM]] declaration1 [, declaration2 ...]<br>
DIM DYNAMIC - see the [[/dynamic|DYNAMIC]] statement<br>
DIM END RECORD - see the [[/dim_record|DIM RECORD]] statement  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/dim_record|DIM RECORD]] recordName  <span style="color:blue;"> /* '''Not Supported in FBtoC''' */</span><br>
[[/dim_system|DIM SYSTEM]] staticExpr&amp; [, preferredSize&amp; [, version&amp; [, release&amp; [, aboutStringWith4CharPrefix$ ] ] ] ]<br>
[[/do|DO]] [statementBlock]
[[/do|UNTIL]] expr <br>
[ DIM ] [[/dynamic|DYNAMIC]] arrayName(maxSub1 [, maxSub2 ...]) [AS dataType]
[[/edit|EDIT]] = fieldMargin<br>
fieldContents$ | container$$ = [[/edit_function|EDIT$]] (fieldID)<br>
fieldContents$ | container$$ = [[/edit_function|EDIT$]] (fieldID, lineNumber)<br>
fieldContents$ | container$$ = [[/edit_function|EDIT$]] (fieldID, -1)<br>
fieldContents$ | container$$ = [[/edit_function|EDIT$]] (fieldID, selStart, selEnd)
[[/edit_statement|EDIT$]] (efID) = string$ | &amp;ZTXThandle&amp; | %TEXTresID% | #container$$ font, size, style, mode, red, green, blue
[[/edit_statement|EDIT$]] (efID,lineNumber) = string$ | &amp;ZTXThandle&amp; | %TEXTresID% | #container$$ font, size, style, mode, red, green, blue
[[/edit_statement|EDIT$]] (efID,-1) = string$ | &amp;ZTXThandle&amp; | %TEXTresID% | #container$$ font, size, style, mode, red, green, blue
[[/edit_statement|EDIT$]] (efID,selStart,selEnd) = string$ | &amp;ZTXThandle&amp; | %TEXTresID% | #container$$ font, size, style, mode, red, green, blue
[[/edit_field_close|EDIT FIELD CLOSE]] [#] fieldID% | &amp;

(Standard BASIC):

[[/edit_field|EDIT FIELD]] [#] idExpr [, [ text ] [, [ rect ] [, [ type ] [, efClass ] ] ] ]<br>
[[/edit_field|EDIT FIELD]] 0

(Appearance Manager):

[[/edit_field|EDIT FIELD]] [#] idExpr [, [ text ] [, [ rect ] [, [ type ], [ efClass ],[ keyFilterProc ] ] ] ]<br>
[[/edit_field|EDIT FIELD]] - idExpr<br>
[[/edit_field|EDIT FIELD]] 0
[[/edit_menu|EDIT MENU]] menuParm

Syntax (Standard BASIC):

[[/edit_text|EDIT TEXT]] [ #optionalFieldNum%,] [ font ] [, [ size ] [, [ style ] [, [ mode ] [, red, green, blue ] ] ] ]

Syntax (Appearance Runtime):

[[/edit_text|EDIT TEXT]] [ #optionalFieldNum%,] [ font ] [, [ size ] [, [ style ] [, [ mode ] [, foreRGB ] [, backRGB ] ] ] ]
[[/eject|EJECT]] driveExpr  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
END ENUM - See the [[/begin_enum|BEGIN ENUM]] statement<br>
END FN - See the [[/local_fn|LOCAL FN]] and [[/long_fn|LONG FN]] statement<br>
END GLOBALS - See the [[/begin_globals|BEGIN GLOBALS]] statement<br>
END IF - See the [[/long_if|LONG IF]] statement<br>
END RECORD - See the [[/begin_record|BEGIN RECORD]] statement<br>
END SELECT - See the [[/select_case|SELECT]] statement<br>
ENDASSEM - See the [[/beginassem|BEGINASSEM]] statement  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span>

Syntax 1:

&quot;statementLabel&quot;<br>
[[/enterproc|ENTERPROC]] [ (intVar1 [, intVar2 ...]) ]<br>
::[statementBlock]<br>
::EXITPROC [= intVar3 ]

Syntax 2:

&quot;statementLabel&quot;<br>
[[/enterproc|ENTERPROC FN]] fnName[ (intVar1 [, intVar2 ...]) ] [= type ]<br>
::[statementBlock]<br>
::EXITPROC [= returnValue ]
error# = [[/erf_pound|FN ERF#]] (z#)<br>
complementaryError# = [[/erfc_pound|FN ERFC#]] (z#)<br>
errorInfo% = [[/error_function|ERROR]] <br>
[[/error_statement|ERROR]] = _noErr <br>
eventRecPtr&amp; = [[/event|EVENT]] <br>
eventInfo% = [[/eventperc_function|EVENT%]] <br>
EventInfo&amp; = [[/eventamp_function|EVENT&amp;]] <br>
[[/eventperc_statement|EVENT%]] = shortIntValue%<br>
[[/eventamp_statement|EVENT&amp;]] = longIntValue&amp;<br>
[[/exit_case|EXIT CASE]] <br>
[[/exit_case|EXIT DO]] <br>
[[/exit_fn|EXIT FN]] <br>
[[/exit_case|EXIT FOR]] <br>
[[/exit_case|EXIT NEXT]] <br>
[[/exit_case|EXIT UNTIL]] <br>
[[/exit_case|EXIT WEND]] <br>
[[/exit_case|EXIT WHILE]] <br>
[[/exit|EXIT]] &quot;label&quot; <br>
EXITPROC - See the [[/enterproc|ENTERPROC]] statement <br>
result# = [[/exp|EXP]] (expr)
result&amp; = [[/fbcomparecontainers|FN FBCOMPARECONTAINERS]] (a$$, b$$)<br>
result&amp; = [[/fbcomparehandles|FN FBCOMPAREHANDLES]] (a&amp;, b&amp;)<br>
ignored = [[/fbgetcontrolrect|FN FBGETCONTROLRECT]] (cHndl &amp;, rect)<br>
ignored = [[/fbgetscreenrect|FN FBGETSCREENRECT]] (rect)<br>
name$ = [[/fbgetsystemname$|FN FBGETSYSTEMNAME$]] (nameType)<br>
[[/fbgetsystemname$|FN FBMAKEFSSPEC]] (inVol%, inDir&, name$, FSSpec )  <span style="color:blue;font-weight:bold">/* Not Supported in FBtoC */</span><br>
result&amp; = [[/fbtestforlibrary|FN FBTESTFORLIBRARY]] (&quot;Library Name&quot;)  <span style="color:blue;font-weight:bold;">/* Not Supported in FBtoC */</span><br>
fileType$ = [[/filesstring_function|FILES$]] <br>
folderName$ = [[/filesstr_ffolder|FILES$]] (_fFolder,[ prompt$ ],, refNumVar%)<br>
folderName$ = [[/filesstr_ffolder|FILES$]] (_FSSpecFolder,[ prompt$ ],, FSSpec) <br>
fileName$ = [[/filesstr_fopen|FILES$]] (_fOpen,[ typeListString$ ], [ promptString$ ], refNumVar%)<br>
fileName$ = [[/filesstr_fopen|FILES$]] (_fOpenPreview,[ typeListString$ ], [ promptString$ ], refNumVar%)<br>
fileName$ = [[/filesstr_fopen|FILES$]] (_FSSpecOpen,[ typeListString$ ], [promptString$], fileSpecRecord)<br>
fileName$ = [[/filesstr_fopen|FILES$]] (_FSSpecOpenPreview,[ typeListString$ ], [ promptString$ ], fileSpecRecord) <br>
fileName$ = [[/filesstr_fsave|FILES$]] (_fSave,[ prompt$ ],[ defaultName$ ], refNumVar%)<br>
fileName$ = [[/filesstr_fsave|FILES$]] (_FSSpecSave,[ prompt$ ],[ defaultName$ ], fileSpecRecord) <br>
[[/fill|FILL]] h, v <br>
action = [[/finderinfo|FINDERINFO]] (countVar%, nameVar$, typeVar&amp;, dirRefNumVar%)<br>
action = [[/finderinfo|FINDERINFO]] (countVar%, @FSSpec[(array)],@OSType&amp;[(array)], dirRefNumVar %)<br>
wholeNum# = [[/fix|FIX]] (expr#)<br>
[[/flushevents|FLUSHEVENTS]] <br>
[[/flushwindowbuffer|FLUSHWINDOWBUFFER]] [ { wRef | { _FBAutoFlushOff | _FBAutoFlushOn } ] <br>
result = [[/fn_toolbox|FN ToolboxFunctionName]] [ modifiers ] [ ([ { #addrExpr1&amp; | arg1 }[,{ #addrExpr2&amp; | arg2 }...] ]) ]<br>
[ result =] [[/fn_userfunction|FN]] functionName [(param1 [, param2 ...])]<br>
folderRefNum% = [[/folder|FOLDER]] (path$, refNum%)<br>
parentFolderVRef% = [[/folder|FOLDER]] (&quot;:&quot;,refNum%)<br>
[[/for|FOR]] indexVar = firstValue TO lastValue [ STEP stepValue ]<br>
::[ statementBlock ]<br>
::NEXT [ indexVar ]<br>
fractionValue# = [[/frac|FRAC]] (expr)<br>
[[/get_field|GET FIELD ]] ZTXThandle&amp;, efID<br>
[[/get_preferences|GET PREFERENCES]] prefFileName$, prefRecord<br>
[[/get_window|GET WINDOW]] [#] wndID, windowPtrVar&amp;<br>
[[/getprocessinfo|GETPROCESSINFO]] index%, processName$ [, PSN ]<br>
[[/globals|GLOBALS]] &quot;filename1&quot; [, &quot;filename2&quot; ...]<br>
[[/gosub|GOSUB]] { lineNumber | &quot;statementLabel&quot; }<br>
[[/goto|GOTO]] { lineNumber | &quot;statementLabel&quot; }
[[/handleevents|HANDLEEVENTS]] <br>
[[/handshake|HANDSHAKE]] portID, handshakeType<br>
hexString$ = [[/hexstring|HEX$]] (expr)
[[/if|IF]] expr THEN { dest1 | statement1 [: statement2 ...]} [ ELSE { dest2 | statement3 [: statement4 ...]}] <br>
[[/inc|INC]] (intVar)<br>
::intVar ++
::numericVariable += IntegerValToAdd
[[/inc_long|INC]] {LONG|WORD|BYTE} (addr&amp;) <br>
[[/include|INCLUDE]] { &quot;&lt;path&gt;&quot; | alisResID }<br>
stringVar$ = [[/index_function|INDEX$]] (element [, indexID ])<br>
[[/index_statement|INDEX$]] (element [, indexID ]) = stringExpr$<br>
[[/index_d|INDEX$ D]] (element [, indexID ])<br>
[[/index_i|INDEX$ I]] (element [, indexID ]) = stringExpr$<br>
foundElement = [[/indexf|INDEXF]] (string$ [, startElement [, indexID ] ])<br>
stringVar$ = [[/inkey_function|INKEY$]] <br>
stringVar$ = [[/inkey_iochannel|INKEY$]] (deviceID)<br>
[[/input|INPUT]] [@(col, row)| % (h, v)] [ &quot;prompt&quot; ;] var1 [, var2 ...]<br>
[[/input_pound|INPUT#]] deviceID, var1 [, var2 ...]<br>
foundPosition = [[/instr|INSTR]] (startPos, targetString$ | targetContainer$$, searchString$ | searchContainer$$)<br>
nearestInteger&amp; = [[/int|INT]] (expr#)<br>
ignored = [[/invalrect|FN INVALRECT]] (rect)
 [[/kill|KILL]] path$ [, refNum% [, dirID&amp; ]]<br>
[[/kill_appleevent|KILL APPLEEVENT]] eventType&amp;, eventClass&amp;<br>
[[/kill_dynamic|KILL DYNAMIC]] arrayName<br>
[[/kill_field|KILL FIELD]] handle&amp;<br>
[[/kill_picture|KILL PICTURE]] pictureHandle&amp;<br>
[[/kill_preferences|KILL PREFERENCES]] prefFileName$<br>
[[/kill_resources|KILL RESOURCES]] &quot;resType&quot;, resID%, [ &quot;resType&quot;, resID% ...]
subString$ = [[/leftstring|LEFT$]] (string$, numChars)<br>
subContainer$$ = [[/leftstring|LEFT$$]] (container$$, numChars)<br>
stringLength = [[/len|LEN]] (string$ | container$$)<br>
[ [[/let|LET]] ] var = expr<br>
[ [[/let|LET]] ] var;length = address&amp;<br>
[[/library|LIBRARY]] &quot;LibraryName&quot;<br>
LIBRARY<br>
lineAddress&amp; = [[/line|LINE]] &quot;label&quot;<br>
[[/line_input|LINE INPUT]] [@(col, row)| % (h, v)] [ &quot;prompt&quot; ;] stringVar$<br>
[[/line_input_pound|LINE INPUT#]] deviceID, stringVar$<br>
result = [[/loc|LOC]] (deviceID)<br>
[ CLEAR ] [[/local|LOCAL]] [ MODE ]<br>
[ CLEAR ] [[/local_fn|LOCAL FN]] functionName [(arg1 [, arg2 ...])]<br>
::[statementBlock]<br>
::END FN [= expr ]<br>
[[/locate|LOCATE]] h,v<br>
numRecords = [[/lof|LOF]] (deviceID [, recordLength ])<br>
naturalLog# = [[/log|LOG]] (expr)<br>
commonLog# = [[/log10|LOG10]] (expr)<br>
base2Log# = [[/log2|LOG2]] (expr)<br>
[[/long_color|LONG COLOR]] bluePart, greenPart, redPart [, foregroundFlag ]<br>
[[/long_fn|LONG FN]] functionName [(arg1 [, arg2 ...])]<br>
::[statementBlock]<br>
::END FN [= expr ]<br>
[[/long_if|LONG IF]] expr<br>
::[statementBlock1]<br>
::[ XELSE<br>
::[statementBlock2] ]<br>
::END IF<br>
[[/lprint|LPRINT]] [@(col, row)|%(h, v)] [ itemList ]
[[/machlg|MACHLG]] { constant | variable }[,{ constant | variable }...]  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/maxwindow|MAXWINDOW]] h, v<br>
trueOrFalse = [[/maybe|MAYBE]] <br>
info&amp; = [[/mem|MEM]] (expr)<br>
selectedMenu = [[/menu_function|MENU]] (_menuID)<br>
selectedItem = [[/menu_function|MENU]] (_itemID)<br>
[[/menu_statement|MENU]] menuID, itemID, state [, string$ ]<br>
[[/menu_statement|MENU]] <br>
[[/menu_resource|MENU]] resID%,{_resMenu| _resSubMenu }, state [, resType$ ]<br>
[[/menu_preferences|MENU PREFERENCES]] menuID, itemID<br>
subString$ = [[/MID_function|MID$]] (string$, startPos [, numChars ])<br>
subContainer$$ = [[/MID_function|MID$$]] (container$$, startPos [, numChars ])<br>
[[/MID_statement|MID$]] (stringVar$, startPos, numChars) = replaceString$<br>
[[/MID_statement|MID$$]] (container$$, startPos, numChars) = replaceString$ / contnr$$<br>
[[/minwindow|MINWINDOW]] h, v<br>
string$ = [[/mkistr|MKI$]] (intExpr)<br>
remainder = expr [[/mod|MOD]] modulus<br>
buttonStatus = [[/mouse|MOUSE]] (_down)<br>
clickType = [[/mouse_event|MOUSE]] (0)<br>
locationInfo = [[/mouse_event|MOUSE]] (locationType)<br>
horzPosition = [[/mouse_position|MOUSE]] (_horz)<br>
vertPosition = [[/mouse_position|MOUSE]] (_vert)
result&amp; = exprA { [[/nand|NAND]] | ^&amp;} exprB<br>
[[/for|NEXT]] - See [[/for|FOR]] statement<br>
result&amp; = exprA { [[/nor|NOR]] | ^|} exprB<br>
value = [[/not|NOT]] expr
 octalString$ = [[/octstring|OCT$]] (expr)<br>
byteOffset = [[/offsetof|OFFSETOF]] (fieldName IN { recordType | trueRecVar })<br>
byteOffset = [[/offsetof|OFFSETOF]] (const [ IN pseudoRecVar ])<br>
[[/on_appleevent|ON APPLEEVENT]] (eventtype&amp;, eventClass&amp;) { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_break|ON BREAK]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_dialog|ON DIALOG]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_edit|ON EDIT]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_error_fn|ON ERROR]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_error_end|ON ERROR END]] <br>
[[/on_error_return|ON ERROR RETURN]] <br>
[[/on_event|ON EVENT]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_finderinfo|ON FINDERINFO]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_expr_gosub|ON expr GOSUB]] { &quot;label1&quot; | lineNum1 }[,{ &quot;label2&quot; | lineNum2 }...]<br>
[[/on_expr_goto|ON expr GOTO]] { &quot;label1&quot; | lineNum1 }[,{ &quot;label2&quot; | lineNum2 }...]<br>
[[/on_lprint|ON LPRINT]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_menu|ON MENU]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_mouse|ON MOUSE]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_overflows|ON OVERFLOWS]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_stop|ON STOP]] { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_timer|ON TIMER]] (interval) { FN userFunction| GOSUB { lineNumber | &quot;stmtLabel&quot; }}<br>
[[/on_timer|TIMER END]] <br>
[[/on_timer|TIMER OFF]]<br>
[[/open|OPEN]] &quot;method[fork]&quot;, fileID, path$|@FSSpec [, [ recLen ] [, refNum% [, dirID&amp; ] ] ]<br>
[[/open_c|OPEN &quot;C&quot;]], portID, baud [, [ parity ] [, [ stopbit ] [, [ wordLength ] [, buffer ] ] ] ]<br>
[[/open_unix|OPEN &quot;UNIX&quot;]], fileID, UNIXcommand$<br>
result&amp; = exprA { [[/or|OR]] exprB<br>
[[/output|OUTPUT]] [ FILE ] &quot;filePath&quot;<br>
[[/override|OVERRIDE]] Local Fn fnName<br>
[[/override| OVERRIDE]] Runtime fnName<br>
[[/override| OVERRIDE]] EnterProc fnName<br>
[[/override| OVERRIDE]] _constantName = newValue
lineCount = [[/page_function|PAGE]] <br>
[[/page_statement|PAGE]] <br>
[[/page_lprint|PAGE LPRINT]] <br>
[[/parentid|PARENTID]] = directoryID&amp;  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
byteValue = [[/peek|PEEK]] [ [[/peek|BYTE]] ] (address&amp;)<br>
shortIntValue% = [[/peek|PEEK WORD]] (address&amp;)<br>
longValue&amp; = [[/peek|PEEK LONG]] (address&amp;)<br>
[[/pen|PEN]] [ penWidth ] [, [ penHeight ] [, [ visible ] [, [ mode ] [, pattern ] ] ] ]<br>
pictureHandle&amp; = [[/picture_function|PICTURE]]<br>
[[/picture_statement|PICTURE]] [(h1, v1)] [-(h2, v2)] [, pictureHandle&amp; ]<br>
[[/picture_field|PICTURE FIELD]] [#] pfID [, [ pict ] [, [ rect ] [, [ type ] [, just ] ] ] ]<br>
[[/picture_on|PICTURE ON]] [(h1, v1)] [-(h2, v2)]<br>
[[/picture_on|PICTURE OFF]] [, pictHandleVar &amp;]<br>
[[/plot|PLOT]] h, v<br>
[[/plot|PLOT TO]] h, v<br>
[[/plot|PLOT]] h1, v1 TO h2, v2 [ TO h3, v3 ...]<br>
[[/poke|POKE]] [ BYTE ] address&amp;, byteExpr<br>
[[/poke|POKE WORD]] address&amp;, shortIntExpr<br>
[[/poke|POKE LONG]] address&amp;, longIntExpr<br>
[[/pop|POP]] (var)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/pop|POP]] { BYTE | WORD | LONG }(address&amp;)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
numCharacters = [[/pos|POS]] (deviceType)<br>
userCancelled = [[/prcancel|PRCANCEL]] <br>
pRecH&amp; = [[/prhandle|PRHANDLE]] <br
>
[[/print|PRINT]] [@(col, row)|%(h, v)] [ printItem [{,|;}[ printItem ]...] ]<br>
[[/print|PRINT]] [@(col, row)|%(h, v)] [POINT [{,|;}[POINT]...] ]<br>
[[/print_pound|PRINT#]] deviceID,[ printItem [{,|;}[ printItem ]...] ]<br>
procAddress&amp; = [[/proc|PROC]] &quot;label&quot;<br>
string$ = [[/pstr_function|PSTR$]] (address&amp;)<br>
[[/pstr_statement|PSTR$]] (addressVar&amp;) = string$<br>
[[/push|PUSH]] (var)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/push|PUSH]] { BYTE | WORD | LONG }(address&amp;)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/put_preferences|PUT PREFERENCES]] prefFilePath$, prefRecord
[[/random|RANDOM]] [ -IZE ] [ expr ]<br>
[[/ratio|RATIO]] h, v<br>
[[/read|READ]] { var | PSTR$ (addressVar&amp;)}[,{ var | PSTR$ (addressVar&amp;)}...]<br>
[[/read_pound|READ #]] deviceID,{ recVar | numVar | strVar$ ; len } [,{ recVar | numVar | strVar$ ; len }...]<br>
[[/read_dynamic|READ DYNAMIC]] deviceID,arrayName<br>
[[/read_field|READ FIELD]] [#] deviceID,handleVar<br>
[[/read_file|READ FILE]] [#] deviceID,address&amp;,numBytes&amp;<br>
currentRecord = [[/rec|REC]] (fileID)<br>
[[/record|RECORD]] [#] fileID, recordNum [, positionInRecord ]<br>
currentA5&amp; = [[/register|REGISTER(A5)]]   <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/register_on|REGISTER ON]]    <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/register_on|REGISTER OFF]]   <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[statement] [[/rem|REM]] [remarks]<br>
[statement] ' [remarks]<br>
[statement] // [remarks]<br>
[statement] /* [blockRemarks]*/ [statement]<br>
[[/rename|RENAME]] oldPath$ { TO |,} newFileNameOnly$ [, refNum% [, dirID&amp; ]]<br>
[[/reset|RESET]] <br>
[[/resources|RESOURCES]] &quot;[ pathname ]&quot; [,&quot; ttttcccc &quot;]<br>
[[/restore|RESTORE]] [ expr ]<br>
[[/return|RETURN]] [ &quot;label&quot; ]<br>
subString$ = [[/rightstring|RIGHT$]] (string$,numChars)<br>
subContainer$$ = [[/rightstring|RIGHT$$]] (container$$,numChars)<br>
randomInteger% = [[/rnd|RND]] (expr%)<br>

To re-route text and graphics:

[[/route|ROUTE]] [#]_toPrinter <br>
[[/route|ROUTE]] [#]_toScreen <br>
[[/route|ROUTE]] [#]_toBuffer [+ 0... 4 ]

To re-route text:

[[/route|ROUTE]] [#] serialPort<br>
[[/route|ROUTE]] [#] fileID<br>
[[/run|RUN]] path$ [, refNum% [, dirID&amp; ]]<br>
[[/runtime|RUNTIME]] routineName [(arg1 [, arg2 ...]) ]<br>
[[/runtime|END RUNTIME]]
[[/scroll|SCROLL]] (h1, v1)-(h2, v2), hPixels%, vPixels%<br>
[[/scroll_button|SCROLL BUTTON]] [#] idExpr [, [ current ] [, [ min ] [, [ max ] [, [ page ] [, [ rect ] [, type ] ] ] ] ] ]<br>
 [[/segment|SEGMENT]] [ minSegmentSize ] <span style="color:blue; font-weight:bold;">/* Ignored in PPC */</span><br>
 [[/segment_return|SEGMENT RETURN]] <span style="color:blue;font-weight:bold;">/* Ignored in PPC */</span> <br>
[[/select_case|SELECT]] [ CASE ] targetExpr<br>
::CASE testExpr [, testExpr ...] [, max32TestExpr ...]<br>
:::[statementBlock]<br>
::[ CASE testExpr [, testExpr ...] [,max32TestExpr ...]<br>
:::[statementBlock]...]<br>
::[ CASE ELSE<br>
:::[statementBlock] ]<br>
::END SELECT
[[/select_case|SELECT]] [ CASE ]<br>
::CASE booleanExpr [, booleanExpr ...] [, max32T booleanExpr ...]<br>
:::[statementBlock]<br>
::[ CASE booleanExpr [, booleanExpr ...] [, max32T booleanExpr ...]<br>
:::[statementBlock]...]<br>
::[ CASE ELSE<br>
:::[statementBlock]]<br>
::END SELECT
[[/sendappleevent|SENDAPPLEEVENT]] eventtype&amp;, eventClass&amp;, dataAddress&amp; dataSize&amp;, processName$<br>
[[/setselect|SETSELECT]] startSelect%, endSelect%<br>
[[/setzoom|SETZOOM]] [#] windowID [,(h1, v1)-(h2, v2)]<br>
[[/setzoom|SETZOOM]] [#] windowID, @ rect<br>
signOfExpr = [[/sgn|SGN]] (expr)<br>
[[/shutdown|SHUTDOWN]] [ msg$ ]<br>
theSine# = [[/sin|SIN]] (expr)<br>
result# = [[/sinh|SINH]] (expr)<br>
dataSize = [[/sizeof|SIZEOF]] ({ var | typeName | ptrType ^| hdlType ^^})<br>
[[/sound_end|SOUND END]] <br>
[[/sound_frequency|SOUND]] pitch, duration [, [ volume ] [, async ]]<br>
[[/sound_snd|SOUND]] soundIDstring$<br>
[[/sound_snd|SOUND]] %resIDNumber<br>
[[/sound_snd|SOUND]] &amp;soundHandle&amp;<br>
soundIsPlaying = [[/soundperc|SOUND%]] <br>
stringOfSpaces$ = [[/spacestring|SPACE$]] (numChars)<br>
[[/spc|SPC]] (numChars)<br>
squareRoot# = [[/sqr|SQR]] (expr)<br>
[[/stop|STOP]] [ string$ ]<br>
stringFromList$ = [[/str_pound|STR#]] (resourceID%, index%)<br>
numberString$ = [[/strstring|STR$]] (numericExpr)<br>
stringFromHandle$ = [[/str_amp|STR&amp;]] (handle&amp;, index%)<br>
stringOfChars$ = [[/stringstr|STRING$]] (numChars,{ char$ | asciiValue% })<br>
container$$ = [[/stringstr|STRING$$]] (numChars,{ char$ | asciiValue% })<br>
[[/stringlist|STRINGLIST ON]]  <span style="color:blue;"> /* '''Not Supported in FBtoC  any form''' */</span><br>
[[/stringlist|STRINGLIST OFF]] <br>
[[/stringlist|STRINGLIST]] <br>
[[/stringlist|STRINGLIST]] = resID [, ResourceName$ ]<br>
[[/stringlist|STRINGLIST OPT]] <br>
[[/stringlist|STRINGLIST NOPT]] <br>
[[/stringlist|STRINGLIST END]] <br>
[[/swap|SWAP]] variable1, variable2<br>
systemErrorCode% = [[/syserror_function|SYSERROR]] <br>
[[/syserror_statement|SYSERROR]] = OSErrorCode%<br>
systemInformation = [[/system_function|SYSTEM]] (whichInfo)<br>
[[/system_statement|SYSTEM]]
theTangent# = [[/tan|TAN]] (expr)<br>
result# = [[/tanh|TANH]] (expr)<br>
[[/tbalias|TBALIAS]] oldName, NewName <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
editFieldHandle&amp; = [[/tehandle|TEHANDLE]] (fieldID)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
fieldInfo = [[/tehandle|TEHANDLE]] (- fieldID)<br>
char$ = [[/tekey_function|TEKEY$]] <br>
[[/tekey_statement|TEKEY$]] = string$<br>
[[/text|TEXT]] [ font% ] [, [ size% ] [, [ face% ] [, copyMode% ] ] ]<br>
[[/threadbegin|THREADBEGIN]] FN name [, parameter&amp; [, stackMin&amp;] ]<br>
abortBoolean = [[/threadstatus|THREADSTATUS]] [ (ticks&amp;) ]<br>
currentTime$ = [[/timestring|TIME$]] <br>
secondsSinceMidnight&amp; = [[/timer_function|TIMER]]<br>
[[/timer_statement|TIMER]] = interval<br>
[[/timer_statement|TIMER]] (0) OFF <br>
[[/timer_statement|TIMER]] (0) END <br>
[[/toolbox|TOOLBOX]] [ FN ] functionName [(arg1 [, arg2 ...]) ] [= returnParam ] [` 0x0000, 0x0000 ...]<br>
[[/tron|TRON]] [ [[/tron|ALL]] ] <br>
[[/tron|TRON BREAK]]  <br>
[[/tron|TROFF]] <br>
[[/tron_x|TRON X]] <br>
dataType = [[/typeof|TYPEOF]] ({ variable | typeName })
theTangent# = [[/tan|TAN]] (expr)<br>
upperCaseString$ = [[/ucase|UCASE$]] (string$)<br>
upperCaseContainer$$ = [[/ucase|UCASE$$]] (container$$)<br>
returnVar = [[/universalfn|UNIVERSALFN]] (procPtr&amp;, flags [, parm1 [, parm2 ...] ])  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/universalproc|UNIVERSALPROC]] (procPtr&amp;, flags [, parm1 [, parm2 ...] ])  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/unloadsegment|UNLOADSEGMENT]] &quot;statementLabel &quot;  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
digitString$ = [[/unsstring|UNS$]] (expr)<br>
[[/until|UNTIL]]<br>
string$ = [[/using|USING]] format$ ; expr<br>
returnValue&amp; = [[/usr|USR]] fnIndicator (expr)<br>
absValue&amp; = [[/usr_abs|USR ABS]] (expr)<br>
dataHandle&amp; = [[/usr_applescriptgetresult|USR APPLESCRIPTGETRESULT]] <br>
errorFlag = [[/usr_applescriptloadandrun|USR APPLESCRIPTLOADANDRUN]] (fSpec, resID%)<br>
errorFlag = [[/usr_applescriptrun|USR APPLESCRIPTRUN]] (errorMessage$)<br>
errFlag = [[/usr_applescriptstore|USR APPLESCRIPTSTORE]] (fSpec, resID%, scriptName$)<br>
err = [[/usr_convertimagefile|USR CONVERTIMAGEFILE]] (srcName$,srcRef%, destName$,destRef%, newTypeIn&amp;, newCreator &amp;)<br>
err = [[/usr_copyfile|USR COPYFILE]] (SrcName$, SrcVol%, SrcDir&amp;, DestName$, DstVol%, DstDir&amp;)<br>
elementSize& = [[/usr_dynamicitemsize|USR DYNAMICITEMSIZE]] (whichIndex)<br>
evenNumber&amp; = [[/usr_even|USR EVEN]] (expr)<br>
boolean = [[/usr_fileexists|USR FILEEXISTS]] (fileName$, vRefNum%, dirID&amp;)<br>
fontHeight = [[/usr_fontheight|USR FONTHEIGHT]] <br>
boolean = [[/usr_fsfileexists|USR FSFILEEXISTS]] (fsSpec)<br>
error = [[/usr_fssendfiletotrash|USR FSSENDFILETOTRASH]] (FSSpec)<br>
resultCode = [[/usr_fsgetfoldername|USR FSGETFOLDERNAME]] (fsSpec,folderName$)<br>
resultCode = [[/usr_fsgetfullpathname|USR FSGETFULLPATHNAME]] (fsSpec,pathName$)<br>
boolean = [[/usr_getdoublebyte|USR GETDOUBLEBYTE]]  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
resultCode = [[/usr_getfoldername|Usr FSGETFOLDERNAME]] (fsSpec, folderName$)<br>
resultCode = [[/usr_getfullpathname|USR GETFULLPATHNAME]] (vRef%,dirID&amp;,pathName$)<br>
boolean = [[/usr_getsinglebyte|USR GETSINGLEBYTE]]   <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
pictHandle&amp; = [[/usr_getpict|USR GETPICT]] ({ rect | #rectAddr&amp; })<br>
buttonID% = [[/usr_handle2btn|USR HANDLE2BTN]] (ctrlRecHandle&amp;)<br>
pictHandle&amp; = [[/usr_imagefiletopict|USR IMAGEFILETOPICT]] (fileName$, vRef%)<br>
err = [[/usr_movefile|USR MOVEFILE]] (SrcName$,SrcVol%,SrcDir&amp;,DstVol%,DstDir&amp;)<br>
resRef = [[/usr_openrfperm|USR OPENRFPERM]] (fileName$,vRef%,permission)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
rHndl&amp; = [[/usr_replaceresource|USR REPLACERESOURCE]] (rHndl&amp;, rTp&amp;, rID%,rName$, rRef%)<br>
wholeNumber = [[/usr_round|USR ROUND]] (numericExpression)<br>
wholeNumber = [[/usr_round|USR ROUNDUP]] (numericExpression)<br>
wholeNumber = [[/usr_round|USR ROUNDDOWN]] (numericExpression)<br>
err% = [[/usr_saveimagefileaspict|USR SAVEIMAGEFILEASPICT]] (srcName$, srcVol%, destName$,destVol%)<br>
resultCode = [[/usr_scanfolder|USR SCANFOLDER]] (FileScanRecord)<br>
error = [[/usr_sendfiletotrash|USR SENDFILETOTRASH]] (fileName$, vRefNum %)  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
offset&amp; = [[/usr_stroffset|USR STROFFSET]] (element%, resID% | handle&amp;)<br>
WindowID% = [[/usr_wptr2wnum|USR WPTR2WNUM]] (WindowPtr&amp;)
numericValue = [[/val|VAL]] (string$)<br>
integerValue&amp; = [[/val_amp|VAL&amp;]] (string$)<br>
ignored = [[/validrect|FN VALIDRECT]] (rect)<br>
address&amp; = [[/varptr|VARPTR]] ({ var | FN userFunction})<br>
address&amp; = @ var
[[/width|WIDTH]] [ LPRINT ] [=]{_noTextWrap|_textWrap| numChars }<br>
 WindowInformation = [[/window_function|WINDOW]](expr)<br>
[[/window_statement|WINDOW]] [#] idExpr [, [ title$ ] [, [ rect ] [, [ type ] [, class ] ] ] ]<br>
[[/window_close|WINDOW CLOSE]] [#] windowID <br>
[[/window_fill|WINDOW FILL]] [[#] expr ]<br>
[[/window_output|WINDOW OUTPUT]] [#] idExpr <br>
[[/window_picture|WINDOW PICTURE]] [#] windowID,pictHandle&amp;<br>
ptr&amp; = [[/wndblk|WNDBLK]]  <span style="color:blue;">/* '''Not Supported in FBtoC''' */</span><br>
[[/write_pound|WRITE]] [#] deviceID,{ var | strngVar$ ; len } [,{ var | strngVar$ ; len }...]<br>
[[/write_dynamic|WRITE DYNAMIC]] deviceID, arrayName <br>
[[/write_field|WRITE FIELD]] [#] deviceID, handle&amp; <br>
[[/write_file|WRITE FILE]] [#] deviceID, address&amp;, numBytes&amp;
XELSE - See the [[/long_if|LONG IF]] statement<br>
result&amp; = exprA {[[/xor|XOR]] | ^^} exprB<br>
[[/xref|XREF]] arrayName (maxSub1 [, maxSub2 ...]) [ AS dataType ]<br>
[[/xrefat|XREF@]] arrayName (maxSub1 [, maxSub2 ...]) [ AS dataType]

Template (to be removed later)

[edit | edit source]

Click here for Template

Go here: <http://en.wikibooks.org/wiki/Futurebasic/language/reference> to admire the long list of keywords to work on.

Use template page (the link is just above).

To edit an entry:

1 - Click on the link titled Template (above the list of keywords).

2 - A new page is displayed in your browser showing how the layout of an entry looks like. Click on the top most link on the right of the screen (probably titled [edit] in English).

3 - The browser opens a new page displaying a form. The main field contains the code used to create the template. It looks like the following:

= <span style="color:red">Layout Template (remove this line)</span> =

== Keyword Goes Here ==

=== Statement Function Operator or Other? (update the checkmarks below) ===
✔ χ Appearance ✔ χ Standard ✔ χ Console

=== Syntax ===
<pre>
code syntax goes here and is pre-formatted (plain text)
</pre>

=== Revised ===
Date & release (remove the Revised section if no date)

=== Description ===
Description goes here.

=== Example ===
<pre>
Sample code goes here (remove the Example section if no sample code)
</pre>

=== Notes ===
Special notes. (leave this section if no notes)

=== See Also ===
<syntaxhighlight>cross-reference</syntaxhighlight>

[[Futurebasic/language/reference|Language Reference]]

4 - Copy the whole text (you can possibly paste it in a text editor window to have it handy at a later time).

5. - If you haven't already done so, put beer in fridge

6 - Now go find a keyword in the list whose entry is empty, and paste the template code and click on the Save button.

If you're not comfortable with HTML, leave to someone else the updating of the entry and repeat the process for another empty keyword entry (i.e. GOTO #6).

If you want to proceed further:

7 - Open the FB Help page in a new browser window or better a text editor. If you're using a browser you will have to display the HTML source code.

Now, depending on your skill with HTML coupled with wiki idiosyncrasy you might do the following:

8a - Edit again the keyword entry updating each section with the corresponding HTML code of the FB Help page.

9a - Save your change and leave to someone else the pleasure to clean up the mess.

or

8b - Clean up the HTML code in your text editor. Sometimes, there are a bunch of tags to remove and even to use more efficiently, I guess. Leave the links related to the missing image resources, it might help later to find out which entries require illustrations. Maybe Christopher can tell us how we can manage the image files.

FB snippets of code of the Ref manual need serious cleaning since they are inserted inside <pre></pre> tags therefore they cannot embed any other HTML code. Other things are worth to know (perhaps for another post), but I think the rule of thumb is to end-up with the less HTML code as possible.

9b - Update each section of the keyword entry with the appropriate clean HTML code.

10 - Repeat ad nauseum (i.e. GOTO #6) with a variant, though: try to find also keyword entries whose template has not been updated.

11 - Celebrate in true Staz style (with beer) when you're done (optional).