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).
- 14:42, 20 April 2022 BigRon55 talk contribs created page VIEW (Created page with "The '''VIEW''' statement creates a graphics view port area by defining the coordinate limits to be viewed. {{PageSyntax}} :: '''VIEW''' [[SCREEN] (column1, row1)-(column2, row2)[, color][, border]]] * When the SCREEN option is used, all coordinates are absolute and only graphics within the viewport area are plotted. * When the SCREEN option is not used, all coordinates are relative to the view port with the values of column1 and row1 being automatically added before...")
- 14:23, 20 April 2022 BigRon55 talk contribs created page Type (Created page with "'''TYPE''' definitions are used to create variables that can hold more than one variable type of a fixed byte length. {{PageSyntax}} ::'''TYPE''' typename ::. ::. variable(s) AS type ::. ::'''END TYPE''' * Typename is an undefined type name holder as it can hold any variable types. * TYPE definitions should be placed in the main module before the start of the program code execution. * TYPE definitions CAN be placed in SUB or FUNCTION procedures using QB64...")
- 13:58, 20 April 2022 BigRon55 talk contribs created page Parameters (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}} {{KW|Type}}][''', ...''']''')'''] ::: FUNCTION FunctionName['''(''parameter''''' [{{KW|AS}} {{KW|Type}}][''', ...''']''')'''] ::: CALL SubName['''(''parameter'''''[''', ...''']''')'''] ::: SubName ['''''parameter'''''][''', ...'''] ::: FunctionName[''...")
- 13:57, 20 April 2022 BigRon55 talk contribs created page PUT (graphics statement) (Created page with "The '''PUT''' graphics statement is used to place GET or BSAVE file images stored in the designated array. {{PageSyntax}} :: '''PUT''' [{{KW|STEP}}]'''(''column'', ''row''), Array('''[''index'']''')'''[,] [{{KW|_CLIP}}] [{PSET|PRESET|AND|OR|XOR}]][, ''omitcolor''] ''Parameters:'' * The STEP keyword can be used to for coordinates relative to the last graphic coordinates used. * ''column'' and ''row'' INTEGER coordinate v...")
- 13:57, 20 April 2022 BigRon55 talk contribs created page GET (graphics statement) (Created page with "The GET statement is used in graphics to store a box area image of the screen into an INTEGER array. ==Legacy support== * '''QB64 can manipulate parts of an image using _PUTIMAGE. For that reason, GET isn't recommended practice anymore and is supported to maintain compatibility with legacy code.''' {{PageSyntax}} : GET [STEP] ({{Parameter|column1}}, {{Parameter|row1}})-[STEP]({{Parameter|column2}}, {{Parameter|row2}}), {{Param...")
- 13:56, 20 April 2022 BigRon55 talk contribs created page DRAW (Created page with "The DRAW statement uses a STRING expression to draw lines on the screen. {{PageSyntax}} : DRAW {{Parameter|drawString$}} {{PageDescription}} * The {{Parameter|drawString$}} can be DRAW instructions in quotation marks or a STRING variable using DRAW instructions. * DRAW starting coordinates can be set using PSET, PRESET, CIRCLE or LINE ending positions. * Other graphic objects can be located at or relative to the last DRAW p...")
- 13:55, 20 April 2022 BigRon55 talk contribs created page LINE (Created page with "The LINE statement is used in graphic SCREEN modes to create lines or boxes. {{PageSyntax}} : LINE [STEP] ['''('''''column1''''',''' ''row1''''')''']'''-'''[STEP] '''('''''column2'', ''row2'''''),''' ''color''[, [{B|BF}], {{Parameter|style%}}] {{Parameters}} * The STEP keyword make ''column'' and ''row'' coordinates relative to the previously coordinates set by any graphic statement. * The optional parameters (''column1'', ''row1'')...")
- 13:55, 20 April 2022 BigRon55 talk contribs created page PRESET (Created page with "The '''PRESET''' graphic SCREEN statement turns a pixel at a coordinate to the background color or a designated color attribute. {{PageSyntax}} :: '''PRESET''' [STEP]'''('''''column%'', ''row%''''')'''[, colorAttribute] ''Parameters:'' * Can use STEP when relative graphics coordinates are required. * ''column'' and ''row'' coordinates can be literal ot variable INTEGER values which can be offscreen. * If the ''colorAttribute'' is omitted, PRESET will...")
- 13:54, 20 April 2022 BigRon55 talk contribs created page PSET (Created page with "The '''PSET''' grahics SCREEN statement sets a pixel to a coordinate with a default or designated color attribute. {{PageSyntax}} :: '''PSET''' [STEP]'''('''''column%'', ''row%''''')'''[, ''colorAttribute''] ''Parameters:'' * Can use STEP relative graphics coordinates from a previous graphic object. * ''Column'' and ''row'' can be literal or variable INTEGER coordinates values which can be offscreen. * If the ''colorAttribute'' is o...")
- 13:53, 20 April 2022 BigRon55 talk contribs created page VIEW PRINT (Created page with "The VIEW PRINT statement defines the boundaries of a text viewport {{KW|PRINT}} area. {{PageSyntax}} : '''VIEW PRINT''' [{{Parameter|topRow%}} '''TO''' {{Parameter|bottomRow%}}] {{Parameters}} * {{Parameter|topRow%}} and {{Parameter|bottomRow%}} specify the upper and lower rows of the text viewport. * If {{Parameter|topRow%}} and {{Parameter|bottomRow%}} are not specified when first used, the text viewport is defined to be the entire screen. {{PageDescription}...")
- 13:52, 20 April 2022 BigRon55 talk contribs created page SCREEN (function) (Created page with "The '''SCREEN''' function returns the ASCII code of a text character or the color attribute at a set text location on the screen. {{PageSyntax}} :: codeorcolor% = '''SCREEN (''row%'', ''column%''''' [, colorflag%]''')''' {{Parameters}} * ''row'' and ''column'' are the INTEGER text coordinates of the SCREEN mode used. * Optional ''colorflag'' INTEGER value can be omitted or 0 for ASCII code values or 1 for color attributes. ''Usage:'' * The ''co...")
- 13:52, 20 April 2022 BigRon55 talk contribs created page POS (Created page with "The '''POS''' function returns the current print cursor text column position. {{PageSyntax}} :: column% = POS(0) * The value in parenthesis is normally 0, but any numerical value or variable could be used for compatibility with Basic. * When a semicolon ends the previous PRINT statement the cursor column position will be after the last character printed. * If TAB or a comma is used the column position will be immediately after the tabbed position normally 9 spac...")
- 13:51, 20 April 2022 BigRon55 talk contribs created page CSRLIN (Created page with "The CSRLIN function returns the current text row position of the PRINT cursor. {{PageSyntax}} : {{Parameter|row%}} = CSRLIN {{PageDescription}} * The value returned is within the range of 1 to the current number of rows in the SCREEN mode used. ** In SCREEN 0 (text mode), the _HEIGHT function returns the number of text rows. ** In graphic modes, the number of available text rows can be calculated by dividing _HEIGHT (measured in pixels i...")
- 13:49, 20 April 2022 BigRon55 talk contribs created page LOCATE (Created page with "The LOCATE statement locates the screen text row and column positions for a PRINT or INPUT procedure. {{PageSyntax}} : LOCATE [{{Parameter|row%}}][, {{Parameter|column%}}] [, {{Parameter|cursor%}}][, {{Parameter|cursorStart%}}, {{Parameter|cursorStop%}}] {{Parameters}} * optional text {{Parameter|row%}} INTEGER values are from 1 to 25, 43 or 50 in SCREEN 0 and 25 in most other legacy graphic screen modes, except screens 11 and 12 which can ha...")
- 13:48, 20 April 2022 BigRon55 talk contribs created page PCOPY (Created page with "The PCOPY statement copies one source screen page to a destination page in memory. {{PageSyntax}} : PCOPY {{Parameter|sourcePage%}}, {{Parameter|destinationPage%}} {{PageDescription}} * {{Parameter|sourcePage%}} is an image page in video memory. * {{Parameter|destinationPage%}} is the video memory location to copy the source image to. * The working page is set as 0. All drawing occurs there. * The visible page is set as any page number that the SCREEN mode a...")
- 13:47, 20 April 2022 BigRon55 talk contribs created page SCREEN (statement) (Created page with "{| align="Right" | __TOC__ |} The SCREEN statement sets the video display mode and size of the program window's workspace. {{PageSyntax}} ::: '''SCREEN''' {''mode%''|''imagehandle&''} [, , active_page, visual_page] {{Parameters}} * The SCREEN ''mode'' INTEGER values available today are 0 to 2 and 7 to 13 listed below. * '''QB64''' can use a LONG _NEWIMAGE page or _LOADIMAGE file ''image handle'' value instead. * The empty comma disables c...")
- 13:46, 20 April 2022 BigRon55 talk contribs created page WIDTH (Created page with "The {{KW|WIDTH}} statement changes the text dimensions of certain {{KW|SCREEN (statement)|SCREEN}} modes. == ''SCREEN'' Syntax == ::: '''WIDTH''' ['''{{Parameter|columns%}}'''][''', {{Parameter|rows%}}'''] == ''File'' Syntax == ::: '''WIDTH''' {'''''file_number''''' | '''''device'''''}, '''''columnwidth%''''' {{Parameters}} * When parameters are not specified, columns defaults to 80 with 25 (30 in SCREEN 11 or 12) rows. ''Usage:'' * WIDTH should be used AFTER...")
- 13:45, 20 April 2022 BigRon55 talk contribs created page WIDTH (QB64) (Created page with "{{DISPLAYTITLE:_WIDTH (function)}} The _WIDTH function returns the width of an image handle or of the current write page. {{PageSyntax}} : {{Parameter|columns&}} = _WIDTH[({{Parameter|imageHandle&}})] {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it's assumed to be the handle of the current SCREEN or write page. * To get the width of the current program screen window use zero for the handle...")
- 13:44, 20 April 2022 BigRon55 talk contribs created page PUT (TCP/IP statement) (Created page with "The '''PUT #''' TCP/IP statement sends unformatted(raw) data to an open connection using a user's handle. {{PageSyntax}} :: '''PUT ''#handle'', , ''data'' ''' {{Parameters}} * The ''handle'' value is returned by the _OPENCLIENT, _OPENHOST or _OPENCONNECTION '''QB64''' functions. * The ''data'' can be any variable type value. Literal values are not allowed. <center>'''Communicating using unformatted/raw streamed data:'''</center> * Benefit: Communicate...")
- 13:42, 20 April 2022 BigRon55 talk contribs created page GET (TCP/IP statement) (Created page with "'''GET''' reads unformatted (raw) data from an open TCP/IP connection opened with _OPENCLIENT, _OPENHOST or _OPENCONNECTION. {{PageSyntax}} ''Syntax 1:'' : '''GET''' ''#handle'', , ''b$'' * Reads any available data into variable length string b$ (b$'s length is adjusted to the number of bytes read, so checking EOF is unnecessary) using the handle return value from _OPENCLIENT, _OPENHOST or _OPENCONNECTION. ''Syntax 2:'' : '''GET''' ''#handle''...")
- 13:40, 20 April 2022 BigRon55 talk contribs created page CONNECTIONADDRESS (Created page with "{{DISPLAYTITLE:_CONNECTIONADDRESS}} The _CONNECTIONADDRESS function returns a connected user's STRING IP address value. {{PageSyntax}} :{{Parameter|result$}} = _CONNECTIONADDRESS[$]({{Parameter|connectionHandle&}}) {{PageDescription}} * The handle can come from the _OPENHOST, OPENCLIENT or _OPENCONNECTION QB64 TCP/IP functions. * For '''HOSTs''': It may return "TCP/IP:8080:213.23.32.5" where 8080 is the port it...")
- 23:49, 19 April 2022 BigRon55 talk contribs created page GOSUB (Created page with "GOSUB sends the program flow to a sub procedure identified by a line number or label. {{PageSyntax}} : GOSUB {{{Parameter|lineNumber}}|{{Parameter|label}}} {{PageDescription}} * Use RETURN in a sub procedure to return to the next line of code after the original GOSUB call. END or SYSTEM can also be used to end program. <!-- needs clarification: * A procedure loop may be used to return automatically instead of using return. --> * GOSUB and GOTO can...")
- 23:49, 19 April 2022 BigRon55 talk contribs created page GOTO (Created page with "The GOTO statement sends the procedure to a line label or a line number in the program. {{PageSyntax}} : GOTO {''lineNumber''|''lineLabel''} '''''IF''' Syntax:'' : IF condition GOTO {''lineNumber''|''lineLabel''} {{PageDescription}} * ''lineNumber'' or ''lineLabel'' must already exist or an IDE status error will be displayed until it is created. * Can be used in SUB or FUNCTION procedures using their own line labels or numbers. * The frequent u...")
- 23:47, 19 April 2022 BigRon55 talk contribs created page IF (Created page with "IF...THEN statements make boolean (true or false) evaluations to automate program decision making. {{PageSyntax}} ===Single-line=== : IF {{Parameter|conditionStatement}} THEN ''{code}'' ELSE ''{alternativeCode}'' : IF {{Parameter|conditionStatement}} GOTO ''lineLabel'' ===Block=== : IF {{Parameter|conditionStatement}} THEN :: ''{code}'' :: ⋮ : ELSEIF {{Parameter|conditionStatement2}} THEN :: ''{code}'' :: ⋮ : ELSE :: ''{...")
- 23:45, 19 April 2022 BigRon55 talk contribs created page THEN (Created page with "'''THEN''' is required in IF...THEN conditional evaluation statements. {{PageSyntax}} :: IF condition THEN execute_code * THEN is required on the same code line as the IF statement. * The condition value must be true(-1) or <> 0 for the statement code to be executed. ''See also:'' * IF...THEN * ELSE, ELSEIF * END IF {{PageNavigation}}")
- 23:44, 19 April 2022 BigRon55 talk contribs created page END IF (Redirected page to IF...THEN) Tag: New redirect
- 23:43, 19 April 2022 BigRon55 talk contribs created page Colon (Created page with "A '''colon''' can be used to separate two unrelated procedure statements on the same line. ''Usage:'' COLOR 10: PRINT "Hello "; : COLOR 12: PRINT "World" {{OutputStart}} {{text|Hello |limegreen}}{{text|World|red}} {{OutputEnd}} * Use colons to combine variable definition statements or screen prints. * Some statements such as END IF and Metacommands require a new code line! * Use semicolons and commas where appropriate in P...")
- 23:42, 19 April 2022 BigRon55 talk contribs created page SELECT CASE (Created page with "SELECT CASE is used to determine the program flow by comparing the value of a variable to specific CASE values. {{PageSyntax}} :'''SELECT''' [EVERY]'''CASE''' {{Parameter|testExpression}} ::'''CASE''' {{Parameter|expressionList1}} :::[statement-block1] ::['''CASE''' {{Parameter|expressionList2}} :::[statement-block2]]... ::['''CASE ELSE''' :::[statementblock-n]] :'''END SELECT''' * '''SELECT CASE''' evaluates {{Parameter|testExpression}} and executes the first...")
- 23:41, 19 April 2022 BigRon55 talk contribs created page ELSE (Created page with "ELSE is used in IF...THEN or SELECT CASE statements to offer an alternative to other conditional statements. {{PageSyntax}} ''Single-line syntax:'' : IF {{Parameter|condition}} THEN ''{code}'' ELSE ''{alternative-code}'' ''Block syntax:'' : IF {{Parameter|condition}} THEN :: ''{code}'' :: ⋮ : ELSEIF {{Parameter|condition2}} THEN :: ''{code}'' :: ⋮ : ELSE :: ''{alternative-code}'' :: ⋮ : END IF {{PageDescription}...")
- 23:40, 19 April 2022 BigRon55 talk contribs created page ELSEIF (Created page with "ELSEIF is used in an IF...THEN block statement to offer an alternative condition. {{PageSyntax}} : IF {{Parameter|condition}} THEN :: ''{code}'' :: ⋮ : ELSEIF {{Parameter|condition2}} THEN :: ''{code}'' :: ⋮ : ELSE :: ''{alternative-code}'' :: ⋮ : END IF {{PageDescription}} * ELSEIF statements require a '''separate''' code block line with THEN for each alternative condition. * There can be more than one ELSE IF statement...")
- 23:40, 19 April 2022 BigRon55 talk contribs created page IF...THEN (Created page with "IF...THEN statements make boolean (true or false) evaluations to automate program decision making. {{PageSyntax}} ===Single-line=== : IF {{Parameter|conditionStatement}} THEN ''{code}'' ELSE ''{alternativeCode}'' : IF {{Parameter|conditionStatement}} GOTO ''lineLabel'' ===Block=== : IF {{Parameter|conditionStatement}} THEN :: ''{code}'' :: ⋮ : ELSEIF {{Parameter|conditionStatement2}} THEN :: ''{code}'' :: ⋮ : ELSE :: ''{...")
- 23:39, 19 April 2022 BigRon55 talk contribs created page CHR$ (Created page with "The CHR$ function returns the character associated with a certain character code as a STRING. {{PageSyntax}} :{{Parameter|result$}} = CHR$({{Parameter|code%}}) {{PageDescription}} * Valid ASCII {{Parameter|code%}} numbers range from 0 to 255. * The character code of a character can be found using ASC. * Some control codes below 32 will not PRINT or will move the screen cursor, unless _CONTROLCHR OFF is used. {{PageExamp...")
- 23:36, 19 April 2022 BigRon55 talk contribs created page INKEY$ (Created page with "The INKEY$ function returns user input as ASCII STRING character(s) from the keyboard buffer. {{PageSyntax}} : {{Parameter|keypress$}} = INKEY$ {{PageDescription}} * Returns ASCII character string values in upper or lower cases. See: UCASE$ and LCASE$ * Returns "" if no key has been pressed since the last keyboard read. * Some control keys cannot be read by INKEY$ or will return 2 byte ASCII codes. * INKEY$ can also be used to clear a...")
- 23:36, 19 April 2022 BigRon55 talk contribs created page LCASE$ (Created page with "The LCASE$ function outputs an all-lowercase version of a STRING. {{PageSyntax}} :{{Parameter|result$}} = LCASE$({{Parameter|text$}}) {{PageDescription}} * Normally used to guarantee that user input is not capitalized. * Does not affect non-alphabetical characters. {{PageExamples}} ''Example:'' The following code guarantees that all user letter entries will be lower case: {{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)" {{Cl|DO...LOOP|DO}}...")
- 23:35, 19 April 2022 BigRon55 talk contribs created page UCASE$ (Created page with "The UCASE$ function outputs an all-uppercase version of a STRING. {{PageSyntax}} :{{Parameter|result$}} = UCASE$({{Parameter|text$}}) {{PageDescription}} * Used to guarantee that all alphabetical characters in a STRING are capitalized. * Does not affect non-alphabetical characters. {{PageExamples}} ''Example:'' The following code guarantees that all letter key entries are capitalized: {{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)" {{Cl|...")
- 23:34, 19 April 2022 BigRon55 talk contribs created page INSTR (Created page with "The INSTR function searches for the first occurence of a search STRING within a base string and returns the position it was found. {{PageSyntax}} : {{Parameter|position%}} = INSTR([{{Parameter|start%}},] {{Parameter|baseString$}}, {{Parameter|searchString$}}) {{Parameters}} * The optional literal or variable INTEGER {{Parameter|start%}} indicates where in the {{Parameter|baseString$}} the search must start. * The {{Parameter|baseString$}} is a litera...")
- 17:27, 19 April 2022 BigRon55 talk contribs created page Template:C1 (Created page with "<span style="color:#87cefa;">[[{{{1}}}|{{{2|{{{1}}}}}}]]</span>")
- 17:20, 19 April 2022 BigRon55 talk contribs created page ERL (Created page with "The ERL function returns the closest previous line number before the last error. {{PageSyntax}} : ''lastErrorLine&'' = ERL {{PageDescription}} * Used in an error handler to report the last line number used before the error. * If the program does not use line numbers, then ERL returns 0. * Use _ERRORLINE to return the actual code line position of an error in a QB64 program. {{PageExamples}} ''Example:'' Using a fake error code to return the line number p...")
- 17:20, 19 April 2022 BigRon55 talk contribs created page ERR (Created page with "The ERR function returns the last QBasic error code number. {{PageSyntax}} : {{Parameter|errorNum%}} = ERR {{PageDescription}} * If there is no error, the function returns 0 * Can be used in an error handling routine to report the last error code number. {{PageExamples}} ''Example:'' Simulating an error to test a program error handler that looks for a "Subscript out of range" error. {{CodeStart}} '' '' {{Cl|ON ERROR}} {{Cl|GOTO}} handler {{Cl|IF...THEN|IF...")
- 17:19, 19 April 2022 BigRon55 talk contribs created page ERROR (Created page with "The ERROR statement is used to simulate a program error or to troubleshoot error handling procedures. {{PageSyntax}} : ERROR {{Parameter|codeNumber%}} {{PageDescription}} * Can be used to test an error handling routine by simulating an error. * Error code 97 can be used to invoke the error handler for your own use, no real error in the program will trigger error 97. * Use error codes between 100 and 200 for custom program errors that will not be responded to...")
- 17:18, 19 April 2022 BigRon55 talk contribs created page ON ERROR (Created page with "ON ERROR is used with GOTO to handle errors in a program. {{PageSyntax}} : ON ERROR GOTO {''lineNumber''|''lineLabel''} {{PageDescription}} * An ''untreated error'' in a program will cause execution to stop and an error message is displayed to the user, who can choose to continue (ignore the error - which could have unexpected results) or end the program. * Use ON ERROR when your program performs operations that are likely to generate errors, like...")
- 17:15, 19 April 2022 BigRon55 talk contribs created page EXIT (Created page with "The EXIT statement is used to exit certain QBasic procedures. {{PageSyntax}} : EXIT {DO|WHILE|FOR|SUB|FUNCTION|SELECT|CASE} {{PageDescription}} * EXIT leaves any of the following procedures immediately. ** EXIT DO exits a DO...LOOP. ** EXIT WHILE exits a WHILE...WEND loop. ** EXIT FOR exits a FOR...NEXT counter loop. ** EXIT SUB exits a SUB procedure before it ends. Use before any GOSUB procedures using RETURN. ** [...")
- 17:14, 19 April 2022 BigRon55 talk contribs created page STEP (Created page with "The '''STEP''' keyword is used in FOR...NEXT loops to skip through the count or to count down instead of up. Used in graphics to designate a relative coordinate position of a graphics object function. {{PageSyntax}} :: FOR counter_variable = start_point TO stop_point ['''STEP ''interval'''''] :: CIRCLE '''STEP(0, 0)''', 10, 12 * The FOR counter variable is used to designate and pass the current FOR incremented value. * FOR loops without the optional STEP value...")
- 17:12, 19 April 2022 BigRon55 talk contribs created page FOR (Created page with "The FOR statement creates a counter loop using specified start and stop numerical boundaries. The default increment is + 1. {{PageSyntax}} : FOR {{Parameter|counterVariable}} = {{Parameter|startValue}} TO {{Parameter|stopValue}} [{{KW|STEP}} {{Parameter|increment}}] :: ''{code}'' :: ⋮ : NEXT [{{Parameter|counterVariable}}] {{Parameters}} * The FOR {{Parameter|counterVariable}} name is required to define the counter span and may also be used aft...")
- 17:11, 19 April 2022 BigRon55 talk contribs created page FOR...NEXT (Created page with "The FOR statement creates a counter loop using specified start and stop numerical boundaries. The default increment is + 1. {{PageSyntax}} : FOR {{Parameter|counterVariable}} = {{Parameter|startValue}} TO {{Parameter|stopValue}} [{{KW|STEP}} {{Parameter|increment}}] :: ''{code}'' :: ⋮ : NEXT [{{Parameter|counterVariable}}] {{Parameters}} * The FOR {{Parameter|counterVariable}} name is required to define the counter span and may also be used aft...")
- 17:10, 19 April 2022 BigRon55 talk contribs created page NEXT (Created page with "NEXT is used in a FOR counter loop to progress through the loop count. {{PageSyntax}} : FOR {{Parameter|counterVariable}} = {{Parameter|startValue}} TO {{Parameter|stopValue}} [{{KW|STEP}} {{Parameter|increment}}] :: ''{code}'' :: ⋮ : NEXT [{{Parameter|counterVariable}}] {{PageDescription}} * NEXT is required in a FOR loop or a "FOR without NEXT" error will occur. * The FOR variable name is not required after N...")
- 17:03, 19 April 2022 BigRon55 talk contribs created page CLOSE (Created page with "CLOSE closes an open file or port using the number(s) assigned in an OPEN statement. {{PageSyntax}} : CLOSE [{{Parameter|fileNumber}}[, ...]] {{Parameters}} * {{Parameter|fileNumber}} indicates the file or list of file numbers to close. When not specified, all open files are closed. {{PageDescription}} * A file must be closed when changing to another file mode. * CLOSE files when they are no longer needed, in order to save memory. * Files cannot be...")
- 17:02, 19 April 2022 BigRon55 talk contribs created page Semicolon (Created page with "The '''semicolon''' is used in a PRINT statement to stop the screen print cursor immediately after the printed value. ''Usage:'' COLOR 13: PRINT "Value ="; value1; value2; value3 {{OutputStart}}{{text|1234 5678 9012|magenta}}{{OutputEnd}} * Positive numerical values printed will include a space before and after each value printed. Strings will not have spacing. * Use the WRITE statement to print values with only commas between the values and no...")
- 17:01, 19 April 2022 BigRon55 talk contribs created page Apostrophe (Created page with "The '''apostrophe''' is used to tell the compiler to ignore a statement or programmer comment. {{PageDescription}} * Allows programmer comments or temporary code removal. * REM can also be used to "comment out" a line. * QBasic metacommands must be commented either with an apostrophe or REM. * $INCLUDE requires an apostrophe before and after the included file name. {{PageExamples}} {{CodeStart}} COLOR 11: PRINT "Print this...." ' PRINT "Don...")
- 17:01, 19 April 2022 BigRon55 talk contribs created page $INCLUDE (Created page with "$INCLUDE is a metacommand that is used to insert a source code file into your program which is then executed at the point of the insertion. {{PageSyntax}} : {REM | ' } $INCLUDE: '{{Parameter|sourceFile}}' {{PageDescription}} * QBasic metacommands must be commented with REM or an apostrophe. * The {{Parameter|sourceFile}} name must be enclosed in apostrophes and can include a path. * $INCLUDE is often used to add functions and subs...")