![]() |
Documentation created by Robert Wishlaw |
BCX Documentation Revision History
there will be 30 storage locations for data with the index numbered from array$[0] to array$[29]. This differs from QBASIC which will allocate 31 storage locations with the index numbered from array$[0] to array$[30].DIM
Array$[
30
]
"Note well that although the size of the dimensions can be altered,...."
to reading"Note well that although the number of elements in a dimension can be altered,...."
OPTIONAL
parameter argument. in order to be able to send formatted output to the stderr.FPRINT
stderr,"An error has occured"
MDIGUI NOMAIN
section and example
to the MDIGUI statement page.SHOWMODAL
... ENDMODAL
to the BCX_WND function page.GUI NOMAIN
to the GUI statement page.BCX_MDI_MSGPUMP, BCX_MSGPUMP, BCX_REGWND, BCX_SETBKGRDBRUSH,
BCX_SETMETRIC, BCX_SETCLASSSTYLE, BCX_SETCURSOR, BCX_SETICON, BCX_SETICONSM
procedures.UnregisterClass(BCXClassName,BCX_hInstance);
UNTIL x1$ = ""to
LOOP UNTIL x1$ = ""
A negative value can be entered as an argument for the CtlID% parameter to indicate that the tab control should not be subclassed.
DIM RAW RetVal = foo(x,y,z) AS INTEGER
BCX allows static SUB/FUNCTION to be coded as:
PRIVATE FUNCTION MyFunction() AS INTEGER PRIVATE SUB MySub()
CLNG rounds a numeric expression to a LONG(32-bit integer) value. CLNG rounds to the nearest even number. For example, -0.5 rounds to 0, and 3.5 rounds to 4.
"When BCX_MDialog is detected within the WinMain function the following globals will be defined: BCX_hInstance, BCX_ScaleX and BCX_ScaleY In addition to this 'BCX_hInstance = hinst' will be emitted immediately before the first occurrence of BCX_MDialog."
"REM and ' can be separated from from a statement with a colon provided a there is a space between the last statement and colon. Of course the preferred way would be to just forget the colon."and, as well, added examples showing valid and invalid syntax for embedded comments.
OPEN EXTRACT$(filename$,".") + ".bas" FOR INPUT AS fp1are valid.
When any BCX VBS scripting procedure is invoked, the translator will automatically add the following define to the output C code.
#ifndef _WIN32_DCOM #define _WIN32_DCOM #endifA similar statement was added to the BCX COM Interface Procedures page.
BAND
may be used. This statement suppresses breaks between
CASE statements and performs a binary AND
on all CASE statements."QSORTIDX
statement.LPRINT
from the
Print to Printer section of the PRINT
statement page.Due to the BCX Project being in abeyance, this is the final version of the BCX Help file.
Warning ! Do not append any data type declaration suffix, that is, %, to an array index variable.
REDIM PRESERVE
array$[i]
is legal however
REDIM PRESERVE
array$[i%]
is not legal.
Warning ! Do not append any data type declaration suffix, that is, %, to an array index.
DIM
array$[i]
is legal however
DIM
array$[i%]
is not legal.
to Dimensioning Arrays section of Variables page.LCCPATH$
function that the
function returns the Pelle's C root folder if the $PELLES
directive has been used.CASE WM_DESTROY UnregisterClass(AppName$, BCX_HINSTANCE) 'so destroy it PostQuitMessage(0) EXIT FUNCTIONstatements from 'Popup Dialog Box from Menu' sample.
in device units or pixels
to
in device units or, if the PIXELS
optional parameter was
specified in the GUI
statement,
in pixels
CASE WM_DESTROY UnregisterClass(AppName$, hInstance) PostQuitMessage(0)statements from MCI PLAYWAV example on PLAYWAV page.
CASE WM_DESTROY UnregisterClass(AppName$, BCX_HINSTANCE) 'so destroy it PostQuitMessage(0) EXIT FUNCTION
FUNCTION = ""is now legal in BCX.
THIS
.
"When using BCX_FORM without
GUI "Classname"
a ClassName must be provided by using
BCX_CLASSNAME$ = "SomeClassName"
prior to initialization. "
AS STRING
*
form to Dimensioning Static Strings syntax list on Variables page.PAUSE
statement.GLOBAL Func(a AS INTEGER) AS FUNCTION INTEGER to GLOBAL Func(INTEGER) AS FUNCTION INTEGERin example in Function Pointers section of Pointers page.
WITH...END WITH
control flow statements.?
print operator to PRINT page.
Note well ! In GUI programs, when dimensioning a DYNAMIC
array, the
DIM
DYNAMIC
LOCAL
DYNAMIC
,
or
GLOBAL
DYNAMIC
statement must appear inside a BEGIN EVENTS ... END EVENTS
structure or inside a FUNCTION
or a SUB
.
FUNCTION = ReturnValuestatement causes an immediate exit from the function, returning to the caller the value contained in ReturnValue.