All public logs
Jump to navigation
Jump to search
Combined display of all available logs of QB64 Phoenix Edition Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 16:59, 22 April 2022 BigRon55 talk contribs created page FILELIST$ (function) (Created page with "The '''FILELIST$''' function can be used in place of the old Qbasic FILES statement to view a list of files. Displays long and short(8.3) DOS filenames with the last modified information. Function name returns the short filename while '''SHARED''' string variables '''LFN$''' and '''Path$''' return the long name and absolute path from the current root drive. The leading underscore should make it compatible with most older Qbasic program code run in '''QB64'''. The fun...")
- 16:23, 22 April 2022 BigRon55 talk contribs created page DAC (Created page with "'''DAC''' stands for the QBASIC Digital to Analog Converter color attributes used in screens 0, 7 and 9. ::::: ''' IMPORTANT: QB64 screens do not use the DAC index!''' * DAC colors are preset and cannot be changed in Qbasic easily(see example). * DAC color attribute settings cannot be changed using PALETTE or OUT RGB statements. * Screen 0 and 9 can use up to 64 DAC color hues. Only attributes 0 to 5 and 7 can have RGB values altered using OUT. * [[PALETTE]...")
- 16:19, 22 April 2022 BigRon55 talk contribs created page LOCK (access) (Created page with "The LOCK statement restricts access to parts of a file by other programs or processes. {{PageSyntax}} :LOCK [#]{{Parameter|fileNumber%}} :LOCK [#]{{Parameter|fileNumber%}}, {{Parameter|record&}} :LOCK [#]{{Parameter|fileNumber%}}, [{{Parameter|firstRecord&}}] TO {{Parameter|lastRecord&}} {{PageDescription}} * {{Parameter|fileNumber%}} is the file number of the file to lock. * In the first syntax, the entire file is locked. * In the second syntax, {{Pa...")
- 16:14, 22 April 2022 BigRon55 talk contribs created page ON TIMER (n) (Created page with "The ON TIMER statement sets up a timed event to be repeated at specified intervals throughout a program when enabled. {{PageSyntax}} : '''ON TIMER'''({{Parameter|seconds%}}) GOSUB {{{Parameter|lineLabel}}|{{Parameter|lineNumber}}} : '''ON TIMER'''([{{Parameter|number%}},] {{Parameter|seconds!}}) { SUBprocedure | GOSUB {{{Parameter|lineLabel}}|{{Parameter|lineNumber}}} } {{PageDescription}} ===Legacy syntax=== * In the first syntax, the ...")
- 16:05, 22 April 2022 BigRon55 talk contribs created page ASCII Table (Created page with "{|border="1" | | -0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -A | -B | -C | -D | -E | -F |- | 0- | | <code>NUL</code><br /><sup>0000</sup><br />'''0''' | | <code>SOH</code><br /><sup>0001</sup><br />'''1''' | | <code>STX</code><br /><sup>0002</sup><br />'''2''' | | <code>ETX</code><br /><sup>0003</sup><br />'''3''' | | <code>EOT</code><br /><sup>0004</sup><br />'''4''' | | <code>ENQ</code><br /><sup>0005</sup><br />'''5''' | | <code>ACK</code><br /><sup>0006...")
- 13:46, 22 April 2022 BigRon55 talk contribs created page Sub (explanatory) (Created page with "A '''SUB''' procedure is a procedure within a program that can calculate and return multiple parameter values just like a full program. {{PageSyntax}} :: '''SUB Procedure_name''' [(''parameter''[, ''list''...])] :: ... :: ... 'procedure variable definitions and statements :: ... :: '''END SUB''' {{Parameters}} * Parameters passed after the procedure call must match the variable types in the SUB parameters in order. * If there are no ''parameter''s passed or they are...")
- 13:26, 22 April 2022 BigRon55 talk contribs created page Function (explanatory) (Created page with "A BASIC '''function''' is a procedure that returns one value in it's name. A function can be used as a statement argument or be assigned to a variable. User-defined functions are possible and behave the same way, with the only exception that user-defined functions cannot currently have optional arguments. Altering the variables that are used as arguments within the function will cause the same changes to the variables outside of the function. This also ap...")
- 13:22, 22 April 2022 BigRon55 talk contribs created page Statement (Created page with "A '''statement''' is, as far as BASIC is concerned, a keyword that can be executed in run-time which doesn't return any value. It can contain several arguments or no arguments at all. The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though. {{PageExamples}} ''Example 1:'' Demonstrates how x- and y-coordinates are enclosed with paranteses (in...")
- 13:18, 22 April 2022 BigRon55 talk contribs created page Argument (Created page with "A '''argument''' or parameter is information that a statement, sub, function or metacommand needs to carry out the task it has been given. Sometimes a argument can be optional and is not needed for the task to be carried out, in such case it will use a default instead of the argument when carrying out the task. It is currently not possible to make arguments optional in user-defined SUBs or FUNCTIONs, but...")
- 13:15, 22 April 2022 BigRon55 talk contribs created page Variable (Created page with "A '''variable''' is a "container" name that can hold a numerical or string value which can be referenced or changed by the program (as opposed to CONSTant values which never change). <center>'''Variable names'''</center> Variables in QB64 can be any name except the names of QB64 or Qbasic keywords and may not contain spaces or non-alphabetical/non-numerical characters (except "." and "_"). Numerical characters cannot be used as the first character of a variable or...")
- 12:57, 22 April 2022 RhoSigma talk contribs created page Data types (Created page with "Any expression, including constants and variables all have an associated type to describe their value. QB64 has various built-in data types used to represent number and text values. Numeric types represent number values, while string types represent text values.")
- 00:16, 22 April 2022 RhoSigma talk contribs created page ONLYBACKGROUND (Redirected page to PRINTMODE) Tag: New redirect
- 00:15, 22 April 2022 RhoSigma talk contribs created page FILLBACKGROUND (Redirected page to PRINTMODE) Tag: New redirect
- 00:13, 22 April 2022 RhoSigma talk contribs created page KEEPBACKGROUND (Redirected page to PRINTMODE) Tag: New redirect
- 00:03, 22 April 2022 RhoSigma talk contribs created page END DECLARE (Redirected page to DECLARE LIBRARY) Tag: New redirect
- 23:57, 21 April 2022 RhoSigma talk contribs created page END TYPE (Redirected page to TYPE) Tag: New redirect
- 23:53, 21 April 2022 RhoSigma talk contribs created page EXIT SUB (Created page with "The '''EXIT SUB''' statement can be used in a SUB routine to exit before the code ends. {{PageSyntax}} :: EXIT SUB * Use EXIT SUB to immediately EXIT a SUB if an undesired condition is created. * EXIT SUB is not the same as END SUB which is required in a SUB procedure. ''See also:'' * SUB * FUNCTION {{PageNavigation}}")
- 23:52, 21 April 2022 RhoSigma talk contribs created page EXIT FUNCTION (Created page with "The '''EXIT FUNCTION''' statement can be used to exit the FUNCTION before the code ends. {{PageSyntax}} :: EXIT FUNCTION * Use EXIT FUNCTION to immediately EXIT a FUNCTION if an undesirable condition is created. * EXIT FUNCTION is not the same as END FUNCTION which is required in a FUNCTION procedure. ''See also:'' * EXIT SUB * EXIT DO, EXIT FOR {{PageNavigation}}")
- 23:46, 21 April 2022 RhoSigma talk contribs created page END SUB (Redirected page to SUB) Tag: New redirect
- 23:33, 21 April 2022 RhoSigma talk contribs created page DO (Redirected page to DO...LOOP) Tag: New redirect
- 19:58, 21 April 2022 BigRon55 talk contribs created page Code Pages (Created page with "__NOTOC__ <center>'''UNICODE CODE PAGES'''</center> This is a list of the current Code Pages supported by the '''QB64 IDE'''. The data can be copied to a file or made into a DATA field. Each section has a description of the Code Page, the data required for '''characters 128 TO 255''', and a LINK to the Code Table. :::'''NOTE: When copying data to create a CSV file, make sure the cursor ends up below last line at home!''' <center>'''See: Code_Pages#Unicode Mapping...")
- 19:53, 21 April 2022 BigRon55 talk contribs created page GET and PUT Demo (Created page with "The following code demonstration shows how GET and PUT can be used to place a sprite on a background image using a mask. {{CodeStart}} '' '' {{Cl|DIM}} Image(3000) AS {{Cl|INTEGER}} {{Cl|SCREEN}} 9 {{Cl|PALETTE}} 'reset colors to normal visible ones {{Cl|PALETTE}} 12, 26 'Set DAC which do not respond to OUT {{Cl|PALETTE}} 10, 0 'set palette values for DAC attributes 'set palette values for attributes that respond to OUT {{Cl|OUT}} {{Cl|&H}}3C8, 0: {{Cl|OUT}} {{Cl|&H}...")
- 19:33, 21 April 2022 BigRon55 talk contribs created page Creating Sprite Masks (Created page with "Sometimes your program may need to place a shaped sprite over background objects. To do that you cannot use the default PUT using XOR. XOR only works on black backgrounds! It distorts underlying colors. You could use the PSET option, but that places a square sprite only. To get irregularly shaped objects you need to create a "mask" of the sprite. After you have created your sprite with a BLACK background, GET the image to an Arrays|arra...")
- 19:30, 21 April 2022 BigRon55 talk contribs created page Creating Icons from Bitmaps (Created page with "The following program can create a single icon from square bitmaps up to 128 X 128. Best to use sizes 32 X 32 or 64 X 64. {{CodeStart}} '' '' {{Cl|CONST}} dat = 14~& {{Cl|DIM}} Dword {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} size {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} wide {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} high {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} Word {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|INTEGER}} {{Cl|DIM}} Byte {{Cl|AS}} {{...")
- 19:29, 21 April 2022 BigRon55 talk contribs created page SaveIcon32 (Created page with "The following Icon creation procedure was adapted from Galleon's SAVEIMAGE sup-procedure that creates 8 BPP or 32 bit bitmaps: '''NOTE: QB64 can use .ico files natively for Windows executables with $EXEICON.''' {{CodeStart}} '' '' DO {{Cl|LINE INPUT}} "Use 8 bit(256 colors) or 32 bit image? ", bit$ clrmode% = {{Cl|VAL}}(bit$) {{Cl|LOOP}} {{Cl|UNTIL}} clrmode% = 8 {{Cl|OR (boolean)|OR}} clrmode% = 32 {{Cl|IF...THEN|IF}} clrmode% = 8 {{Cl|THEN}} clrmode% = 256...")
- 19:28, 21 April 2022 BigRon55 talk contribs created page Creating Icon Bitmaps (Created page with "==Icon Viewer and Bitmap Creator== The following program can be used to view Icon or Cursor images and save them as Bitmaps. When you answer Y the bitmap is saved with a black background so that it can be PUT using XOR on to the AND image. The AND image will be black and white if the image is irregularly shaped(not a full box image). It is placed first using PUT with the AND action or can be placed using _PUTIMAGE with the color w...")
- 19:26, 21 April 2022 BigRon55 talk contribs created page FONTWIDTH (function) (Created page with "{{DISPLAYTITLE:_FONTWIDTH (function)}} The {{KW|_FONTWIDTH (function)|_FONTWIDTH}} function returns the point-size width of a monospace font. {{PageSyntax}} :<code>''result&'' = {{KW|_FONTWIDTH (function)|_FONTWIDTH}}({{Parameter|fontHandle&}})</code> {{PageDescription}} * If {{Parameter|fontHandle&}} is omitted, it is assumed to be the font of the current write page. * If {{Parameter|fontHandle&}} is an invalid handle, an invalid handle error is thr...")
- 19:26, 21 April 2022 BigRon55 talk contribs created page FONTHEIGHT (function) (Created page with "{{DISPLAYTITLE:_FONTHEIGHT}} The _FONTHEIGHT function returns the font height of a font handle created by _LOADFONT. {{PageSyntax}} :{{Parameter|pixelHeight%}} = _FONTHEIGHT[({{Parameter|fontHandle&}})] {{PageDescription}} * Returns the height of the last font used if a handle is not designated. * If no font is set it returns the current screen mode's text block height. {{PageExamples}} ''Example:'' Finding the font or text block size of pri...")
- 19:17, 21 April 2022 BigRon55 talk contribs created page ON STRIG (n) (Created page with "The ON STRIG(n) statement is an event procedure that directs program flow upon the press of a specified joystick button. {{PageSyntax}} : '''ON STRIG'''({{Parameter|buttonFunction}}) GOSUB {{{Parameter|lineNumber}}|{{Parameter|lineLabel}}} : '''ON STRIG'''({{Parameter|buttonFunction}}[, {{Parameter|joystickNumber}}]) {GOSUB {{{Parameter|lineNumber}}|{{Parameter|lineLabel}}} | SUBprocedure} * In '''QB64''' the value can be any button function number w...")
- 19:15, 21 April 2022 BigRon55 talk contribs created page ON KEY (n) (Created page with "The ON KEY(n) statement defines a line number or label to go to (or a SUB to run) when a specified key is pressed. {{PageSyntax}} : ON KEY(n) GOSUB {{Parameter|linelabel}}|{{Parameter|linenumber}} : ON KEY(n) SUBprocedure {{PageDescription}} * Predefined and user defined KEY event number assignments to use with ON KEY(n): {{WhiteStart}} '''1 to 10'''.............Reserved '''F1 to F10''' function keys only. '''11, 12, 13 and 14'''...R...")
- 19:05, 21 April 2022 BigRon55 talk contribs created page Scientific notation (Created page with "'''Scientific notation''' or exponential notation is used to express very large or small numerical values by SINGLE or DOUBLE accuracy. ''Usage:'' -9.7587E+04 or 4.6545D-9 * '''E''' denotes SINGLE precision accuracy and '''D''' denotes DOUBLE precision accuracy in Qbasic. D and E are considered numbers! * To translate the notation, multiply the number preceding the letter by the value of 10 raised to the power following the letter. * PRINT US...") Tag: visualeditor-switched
- 16:25, 21 April 2022 BigRon55 talk contribs created page SNDRAWOPEN (Created page with "{{DISPLAYTITLE:_SNDOPENRAW}} The _SNDOPENRAW function opens a new channel to fill with _SNDRAW content to manage multiple dynamically generated sounds. {{PageSyntax}} : {{Parameter|pipeHandle&}} = _SNDOPENRAW {{PageDescription}} * You can manage multiple dynamically generated sounds at once without having to worry about mixing. * Use _SNDCLOSE to remove the pipe sound handles from memory. {{PageExamples}} ''Example:'' Combining 2 sounds without worrying...")
- 16:23, 21 April 2022 BigRon55 talk contribs created page EXIT FOR (Created page with "The '''EXIT FOR''' statement allows a condition other than the counter value to exit a FOR...NEXT loop. {{PageSyntax}} :: EXIT FOR * Used with a conditional statement to exit a FOR counter loop early. ''See also:'' * FOR...NEXT * EXIT DO, IF...THEN * _CONTINUE {{PageNavigation}}")
- 16:23, 21 April 2022 BigRon55 talk contribs created page EXIT DO (Created page with "The '''EXIT DO''' statement can be used to exit a DO...LOOP from inside of the loop. {{PageSyntax}} :: EXIT DO * Used to exit a DO loop when a condition exists regardless of any loop conditions. ''See also:'' * EXIT FOR, IF...THEN * _CONTINUE {{PageNavigation}}")
- 16:22, 21 April 2022 BigRon55 talk contribs created page LOOP (Created page with "The '''LOOP''' statement denotes the end of a DO...LOOP where the program jumps to the beginning of the loop if the optional condition is true. {{PageSyntax}} :: DO ::. ::. ::. :: LOOP [{UNTIL|WHILE} ''condition''] * LOOP indicates the bottom or end of a DO...LOOP block of code. * Either the DO statement or LOOP statement can set a condition to end the loop. * When a loop uses a LOOP condition, the code inside of it will run at least ONCE. : *...")
- 15:31, 21 April 2022 BigRon55 talk contribs created page Using OFFSET (Created page with "<center>'''_OFFSET Explanation By Michael Calkins'''</center> An '''_OFFSET''' means a pointer. Use it any time that you need to pass or receive a pointer. With the API, types that start with P or LP, and parameters that start with p or lp are generally pointers. As for when to use the _OFFSET data type, it is basically any time that you need to pass a pointer to a function as a parameter, or have a pointer returned from a function as a return value. The _OFFSET t...")
- 15:30, 21 April 2022 BigRon55 talk contribs created page CLIPBOARD$ (function) (Created page with "{{DISPLAYTITLE:_CLIPBOARD$}} The _CLIPBOARD$ function returns the current Operating System's clipboard contents as a STRING. {{PageSyntax}} :{{Parameter|result$}} = _CLIPBOARD$ {{PageDescription}} * Text returned can contain the entire contents of a copied file or web page or text from a previous _CLIPBOARD$ statement. * The string returned can also contain formatting like CRLF (CHR$(13) + CHR$(10)) end of line characte...")
- 15:26, 21 April 2022 BigRon55 talk contribs created page GIF Images (Created page with "<center>'''Animated GIF File Decoder'''</center> GIF files can be one frame or animated images made up of many frames that are displayed at a set frame rate. The following program allows you to view either kind of image or use them in a program. _LOADIMAGE can only return one frame of an animated image. <center>'''NOTE: Include the FILELIST$ (function) or create your own File INPUT routine!'''</center> {{CodeStart}} '##########################################...")
- 15:26, 21 April 2022 BigRon55 talk contribs created page Icons and Cursors (Created page with "<center>'''Icons''' and '''Cursors''' are image files with ICO or CUR filename extensions.</center> {| align="right" | __TOC__ |} * Both can use 1 BPP(B & W), 4 BPP(16), 8 BPP(256) or 24/32 BPP(16 million) colors. * They are formatted similar to bitmaps, but each file can hold more than one image. * Images can be different sizes and use different color palettes. The image width and depth are usually the same and multiples of 16 up to 128. Use _UNSIGNED [[_BYTE]...")
- 15:25, 21 April 2022 BigRon55 talk contribs created page Bitmaps (Created page with "<center>'''Bitmaps''' are image files with the .BMP file name extension.</center> {| align="right" | __TOC__ |} * Bitmaps can use 1, 4, 8 or 24/32 bits per pixel(BPP) color palettes. * Unlike Qbasic, QB64 is capable of working with 24 bit per pixel color(16 million) bitmaps and can create 32 bit screens to use them with the _NEWIMAGE function. * Text SCREEN mode 0 cannot be screen saved in Qbasic or QB64. * The structure of the Bitmap header can be placed in a [...")
- 15:22, 21 April 2022 BigRon55 talk contribs created page Illegal Function (Created page with "'''Illegal Function Call''' returns ERROR Code 5 when a parameter does not match the function type or exceeds function limitations. 1) Graphic objects such as LINE, CIRCLE, PSET, PRESET and DRAW statements must use a graphic SCREEN mode other than the default SCREEN 0. 2) GET (graphics statement) and PUT (graphics statement) cannot use offscreen coordinates in QB. '''QB64''' allows offscreen GETs, but PUT statements can only be used off...")
- 15:21, 21 April 2022 BigRon55 talk contribs created page END SELECT (Created page with "The '''END SELECT''' statement ends a SELECT CASE statement block. {{PageSyntax}} :: END SELECT * The statement is required to end a SELECT CASE block or there will be an error. ''See also:'' * SELECT CASE, IF...THEN {{PageNavigation}}")
- 15:20, 21 April 2022 BigRon55 talk contribs created page COMMON SHARED (Created page with "'''COMMON SHARED''' is used to pass variable values between 2 or more program modules and sub procedures within that module. The multi-modular technique goes back to when QBasic and QuickBASIC had module size constraints. In QB64 it has been implemented so that that older code can still be compiled, though '''it is advisable to use single modules for a single project (not counting $INCLUDE libraries), for ease of sharing and also because the module size constraints...")
- 15:19, 21 April 2022 BigRon55 talk contribs created page XOR (boolean) (Created page with "{{KW|XOR (boolean)|XOR}} evaluates two conditions and if either of them is True then it returns True, if both of them are True then it returns False, if both of them are False then it returns False. {{PageSyntax}} :<code>{{Parameter|condition}} {{KW|XOR (boolean)|XOR}} {{Parameter|condition2}}</code> {{PageDescription}} * Either {{Parameter|condition}} or {{Parameter|condition2}} must be True for the evaluation to return True. * It is called '''"exclusive OR"''' beca...")
- 07:52, 21 April 2022 RhoSigma talk contribs created page Template:PageQBasic (Created page with "== QBasic/QuickBASIC ==")
- 00:41, 21 April 2022 SMcNeill talk contribs created page IS (Redirected page to SELECT CASE) Tags: New redirect visualeditor
- 00:30, 21 April 2022 SMcNeill talk contribs created page Scancodes (Created page with "'''This page is maintained for historic purposes. The functionality of the code below can now be achieved through the _KEYDOWN function.''' ---- '''Scancodes''' are the return values of keyboard input that can be read using INP to find key presses and '''releases''', unlike the ASCII codes returned using INKEY$. {{PageSyntax}} : {{Parameter|scanCode%}} = INP(&H60) {{PageDescription}} * Used to find '''[Ctrl], [Alt], [Shift], [Caps Lock], [Scroll...")
- 00:29, 21 April 2022 SMcNeill talk contribs created page Parameter (Created page with "Optional '''parameters''' are values passed to SUB and FUNCTION procedures. They are always enclosed in parenthesis inside the procedures. {{PageSyntax}} ::: SUB SubName['''(''parameter''''' [{{KW|AS}} Type][''', ...''']''')'''] ::: FUNCTION FunctionName['''(''parameter''''' [{{KW|AS}} Type][''', ...''']''')'''] ::: CALL SubName['''(''parameter'''''[''', ...''']''')'''] ::: SubName ['''''parameter'''''][''', ......")
- 00:28, 21 April 2022 SMcNeill talk contribs created page DEF SEG = 0 (Created page with "The following '''DOS BIOS''' information can be used on Windows 9x machines. Not necessarily XP or NT! Each routine includes the hexadecimal and decimal registers. :'''NOTE: Few of these addresses are currenly accessable in QB64! Some may never be due to OS changes.''' ::::::'''DEF SEG = 0 LOW MEMORY PORT ADDRESSES''' ::::::===================================== :::::'''PORT # | FUNCTION, DESCRIPTION OR COMMENTS FOR USE''' :::::======================================...") Tag: visualeditor-switched
- 00:05, 21 April 2022 SMcNeill talk contribs created page VB Procedures (Created page with "QB64 is created to be compatible with Quick Basic 4.5 only as it was the most popular version. The following sub-procedures have been created to do things that were available in Visual Basic: ==CURRENCY== ===MKC$=== : VB could use the CURRENCY variable type and had the MKC$ function to convert those values to ASCII string values. QB64 can convert _FLOAT currency values to '''8 byte''' strings using _MK$ with _INTEGER64 values: {{CodeStart}} {{Cl|SCREEN...")