User contributions for BigRon55
Jump to navigation
Jump to search
21 April 2022
- 15:2215:22, 21 April 2022 diff hist +637 N 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..." current
- 15:2115:21, 21 April 2022 diff hist +274 N 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:2015:20, 21 April 2022 diff hist +2,085 N 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:1915:19, 21 April 2022 diff hist +1,201 N 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..."
20 April 2022
- 21:1421:14, 20 April 2022 diff hist +926 N Underscore Created page with "An '''underscore''' can be used at the end of a line of code to continue a code line to the next line. ''Usage:'' IF x + y > 500 AND x + y < 600 THEN_ :::PRINT x + y * '''Only QB64 keywords can use a leading underscore! Leading underscores are reserved for QB64 procedure names only!''' * The underscore can be anywhere after the code on that line to continue the code to the next line in QB64. * Multiple underscores can be used for the same line of code..."
- 21:1321:13, 20 April 2022 diff hist +1,040 N + Created page with "The '''+''' plus mathematical operator performs addition on two numerical values or concatenate STRING values. ''Syntax:'' return_value = number1 + number2 {{PageDescription}} * A + sign also can indicate a positive numerical value, but it is not required. * Numbers used can be any literal or variable numerical value type. * Adding one negative value will actually perform subtraction on the other value. * Adding two negative values will..."
- 21:1321:13, 20 April 2022 diff hist +1,377 N Parenthesis Created page with "'''Parenthesis''' are used to enclose SUB and FUNCTION parameters or to set the operation order in Mathematical Operations. ''Usage:'' COLOR 14: PRINT TAB(30); "Hello World" {{OutputStart}} {{text|Hello World|yellow}} {{OutputEnd}} * SUB parameters MUST be enclosed in parenthesis when the CALL statement is used. Do '''not''' use parenthesis without CALL. * Parenthesis can be used in calculations to determine the..."
- 21:1221:12, 20 April 2022 diff hist +659 N Dollar Sign Created page with "The '''$''' is used to denote Qbasic Metacommands or as a STRING variable type suffix. ''Usage:'' $INCLUDE: 'QB.bi' * $STATIC denotes that all arrays can only be dimensioned once using DIM. * $DYNAMIC denotes that all arrays can be redimensioned using REDIM ONLY. * $INCLUDE includes a BI file or Qbasic Library in a program. The file name requires a comment before and after the name. * The string variable suffix MUST be used if..."
- 21:1121:11, 20 April 2022 diff hist +589 N Question mark Created page with "A '''question mark''' can be used as a substitute shortcut to typing PRINT when creating code. ''Usage:'' ?"Hello world" ''Result:'' PRINT "Hello world" * When the IDE cursor moves to the next code line, the question mark is changed to PRINT and the prompt text and variable are spaced appropriately. * When an INPUT statement has no text, a question mark will appear before the input. * A semicolon after the INPUT prompt text will add a question mark afte..."
- 20:5420:54, 20 April 2022 diff hist +1,753 N LSET Created page with "LSET left-justifies a fixed length string expression based on the size of the STRING variable and string expression. {{PageSyntax}} : LSET {stringVariable = stringExpression | stringExpression1 = stringExpression2} {{PageDescription}} * If the string expression is longer than a fixed length string variable the value is truncated from the right side in LSET or RSET. * If the LSET string expression is smaller, spaces will occupy the extra positions to t..."
- 20:5320:53, 20 April 2022 diff hist +1,545 N LPOS Created page with "The LPOS function returns the current LPT printer head position. {{PageSyntax}} : {{Parameter|result%}} = LPOS({{Parameter|index%}}) {{PageDescription}} * {{Parameter|index%}} is the index of the printer, which can have the following values: ** 0 - LPT1: ** 1 - LPT1: ** 2 - LPT2: ** 3 - LPT3: * The LPOS function does not necessarily give the physical position of the print head because it does not expand tab characters. In addition, some printers may buffer ch..." current
- 20:5220:52, 20 April 2022 diff hist +2,073 N LOG Created page with "The LOG math function returns the natural logarithm of a specified numerical value. {{PageSyntax}} : {{Parameter|logarithm!}} = LOG({{Parameter|value}}) {{PageDescription}} * {{Parameter|value}} MUST be greater than 0. "Illegal function call" error occurs if negative or zero values are used. * The natural logarithm is the logarithm to the base '''e = 2.718282''' (approximately). * The natural logarithm of ''a'' is defined as the integral from..."
- 16:4816:48, 20 April 2022 diff hist +2,392 N LINE INPUT (file statement) Created page with "The '''LINE INPUT #''' file statement reads an entire line from a text file into a string variable. {{PageSyntax}} : '''LINE INPUT''' '''#'''{{Parameter|fileNumber&}}''',''' ''stringVariable$'' {{Parameters}} * {{Parameter|fileNumber&}} is the INTEGER number of the file previously opened with the OPEN statement. * {{Parameter|stringVariable$}} holds the text line read from the file. {{PageDescription}} * Reads a file using the {{Parameter|fileNumber&}} OP..."
- 16:4616:46, 20 April 2022 diff hist +1,162 N WRITE Created page with "The {{KW|WRITE}} statement writes a comma-separated list of values to the screen without spacing. {{PageSyntax}} :{{KW|WRITE}} [{{Parameter|expression, List}}] {{PageDescription}} * {{Parameter|expressionList}} is a comma-separated list of variable or literal values to be written to the screen. * Write statement separates displayed values using comma separators(required) that will display on the screen. * Leading and trailing number spaces are omitted when d..."
- 16:4416:44, 20 April 2022 diff hist +2,414 N Concatenation Created page with "'''Concatenation''' is a process where literal or variable STRING values are combined using the + operator. ''Usage:'' value$ = "Literal text" + string_variable$ + "more text." * The STRING values added can be literal or string variable values or a string FUNCTION value. * When combining string values in a variable definition, concatenation MUST be used! * Literal or variable numerical values cannot be used in string concatenation. * A numerical valu..."
- 16:4316:43, 20 April 2022 diff hist +1,356 N Quotation mark Created page with "A '''quotation mark''' delimits the start and end of a literal STRING value. ''Usage:'' string_value$ = "This is a text STRING." * The quotation mark must delimit the ends of a string or text prompt in a PRINT, WRITE, INPUT or LINE INPUT statement. * The IDE may add a missing quotation mark at the end of a statement or function. * LINE INPUT allows quotation marks to be entered as user input. The LINE INPUT (file sta..."
- 16:4316:43, 20 April 2022 diff hist +2,686 N LINE INPUT Created page with "The LINE INPUT statement requests a STRING keyboard entry from a program user. {{PageSyntax}} : LINE INPUT [;] "[text prompt or question]"{,|;} {{Parameter|stringVariable$}} : LINE INPUT ; {{Parameter|stringVariable$}} {{Parameters}} * A semicolon immediately after LINE INPUT stops the cursor after the entry and prevents screen roll on the lowest two screen rows. * ''text prompt or question'' is optional, but quotes are necessary unless just a sem..."
- 16:3816:38, 20 April 2022 diff hist +507 N LET Created page with "The LET is a useless statement designed by cavemen when they started programming. {{PageSyntax}} : '''[LET]''' {{Parameter|variable}} = {{Parameter|expression}} {{PageDescription}} * {{InlineCode}}LET a = 12{{InlineCodeEnd}} is the same as {{InlineCode}}a = 12{{InlineCodeEnd}}, but wastes 4 extra bytes of program space. ''Notes:'' LET is '''optional''', it's the only keyword where the '''entire keyword''' is optional :-) {{PageSeeAlso}} * Cavemen * [..."
- 16:3716:37, 20 April 2022 diff hist +4,506 N LEN Created page with "The LEN function returns the number of bytes used by a variable value and the number of characters in a STRING. {{PageSyntax}} : {{Parameter|length%}} = LEN({{Parameter|literalTextOrVariable}}) * Literal or variable STRING values return the number of string bytes which is the same as the number of string characters. * A numerical ''variable'' will return the number of bytes used by a numerical variable type. ** _BYTE variable types return 1 byte...."
- 16:3716:37, 20 April 2022 diff hist +2,388 N LEFT$ Created page with "The LEFT$ string function returns a number of characters from the left of a STRING. {{PageSyntax}} : LEFT$({{Parameter|stringValue$}}, {{Parameter|numberOfCharacters%}}) {{Parameters}} * {{Parameter|stringValue$}} can be any STRING literal or variable. * {{Parameter|numberOfCharacters%}} INTEGER determines the number of characters to return from left of string. {{PageDescription}} * If the number of characters exceeds the string length the entir..."
- 16:3516:35, 20 April 2022 diff hist +1,466 N FIX Created page with "The FIX function rounds a numerical value to the next whole number closest to zero. {{PageSyntax}} : {{Parameter|result}} = FIX({{Parameter|expression}}) {{Parameters}} * {{Parameter|expression}} is any type of literal or variable numerical value or mathematical calculation. {{PageDescription}} * FIX effectively truncates (removes) the fractional part of {{Parameter|expression}}, returning the integer part. ** This means that FIX roun..."
- 16:3316:33, 20 April 2022 diff hist +463 N MKSMBF$ Created page with "The MKSMBF$ function encodes a single-precision IEEE number to a string value in the Microsoft Binary format. {{PageSyntax}} : {{Parameter|result$}} = MKSMBF$({{Parameter|singlePrecisionVariableOrLiteral!}}) {{PageDescription}} * Encodes SINGLE values to string values in Microsoft Binary format. * The resulting string value can be decoded using CVSMBF. {{PageSeeAlso}} * MKDMBF$ * CVDMBF, CVSMBF {{PageNavigation}}" current
- 16:3216:32, 20 April 2022 diff hist +874 N MKS$ Created page with "The MKS$ function encodes a SINGLE numerical value into a 4-byte ASCII STRING value. {{PageSyntax}} : {{Parameter|result$}} = MKS$({{Parameter|singlePrecisionVariableOrLiteral#}}) {{PageDescription}} * {{Parameter|singlePrecisionVariableOrLiteral#}} is converted to four ASCII characters. To see this in action, try {{InlineCode}}PRINT MKS$(1345678){{InlineCodeEnd}}. * SINGLE values can range up to 7 decimal point digits. Decimal point accuracy..." current
- 16:3216:32, 20 April 2022 diff hist +1,149 N MKL$ Created page with "The MKL$ function encodes a LONG numerical value into a 4-byte ASCII STRING value. {{PageSyntax}} : {{Parameter|result$}} = MKL$({{Parameter|longVariableOrLiteral&}}) {{PageDescription}} * {{Parameter|longVariableOrLiteral&}} is converted to four ASCII characters. To see this in action, try {{InlineCode}}PRINT MKL$(12345678){{InlineCodeEnd}}. * The numerical data usually takes up less bytes than printing the LONG number to a file. * LONG i..."
- 16:3116:31, 20 April 2022 diff hist +2,053 N MKI$ Created page with "The MKI$ function encodes an INTEGER numerical value into a 2-byte ASCII STRING value. {{PageSyntax}} : {{Parameter|result$}} = MKI$({{Parameter|integerVariableOrLiteral%}}) {{PageDescription}} * {{Parameter|integerVariableOrLiteral%}} is converted to two ASCII characters. * INTEGER values can range from -32768 to 32767. * MKI$ string values can be converted back to numerical INTEGER values using CVI. * The function takes up less byte spac..."
- 16:3016:30, 20 April 2022 diff hist +463 N MKDMBF$ Created page with "The MKDMBF$ function encodes a double-precision IEEE number to a string value in the Microsoft Binary format. {{PageSyntax}} : {{Parameter|result$}} = MKDMBF$({{Parameter|doublePrecisionVariableOrLiteral#}}) {{PageDescription}} * Encodes DOUBLE values to string values in Microsoft Binary format. * The resulting string value can be decoded using CVDMBF. {{PageSeeAlso}} * MKSMBF$ * CVDMBF, CVSMBF {{PageNavigation}}" current
- 16:3016:30, 20 April 2022 diff hist +855 N MKD$ Created page with "The MKD$ function encodes a DOUBLE numerical value into an 8-byte ASCII STRING value. {{PageSyntax}} : {{Parameter|result$}} = MKD$({{Parameter|doublePrecisionVariableOrLiteral#}}) {{PageDescription}} * {{Parameter|doublePrecisionVariableOrLiteral#}} is converted to eight ASCII characters. To see this in action, try {{InlineCode}}PRINT MKD$(12345678){{InlineCodeEnd}}. * DOUBLE values can range up to 15 decimal point digits. Decimal point accur..."
- 16:2816:28, 20 April 2022 diff hist +4,664 N OUT Created page with "OUT writes values to register and port hardware addresses. {{PageSyntax}} : OUT {{Parameter|registerAddress%}}, {{Parameter|value%}} {{Parameters}} * {{Parameter|registerAddress%}} is a value expressed as a decimal INTEGER or hexadecimal. * The INTEGER {{Parameter|value%}} sent is normally only 0 to 255 per byte register (8 bit) address. {{PageDescription}} * '''QB64 has limited access to registers. VGA memory and registers are emulated.''' *..."
- 16:2816:28, 20 April 2022 diff hist +976 N OR (boolean) Created page with "The '''OR''' conditional operator evaluates an expression to true (-1) if any of the arguments is also true. {{PageSyntax}} : IF {{Parameter|expression1}} '''OR''' {{Parameter|expression2}} THEN {code} {{PageDescription}} * OR adds an alternative to another conditional evaluation. If either element in the evaluation is true then the evaluation is true. * Parenthesis may be used to clarify the order of comparisons in an evaluation. * Not to be confused with the ..."
- 16:2716:27, 20 April 2022 diff hist +1,576 N OPTION BASE Created page with "The OPTION BASE statement is used to set the default lower bound of arrays. {{PageSyntax}} : OPTION BASE {0|1} {{PageDescription}} * This statement affects array declarations where the lower bound of a dimension is not specified. * When used, OPTION BASE must come before any array declarations (DIM) to be affected. * By default, the lower bound for arrays is zero, and may be changed to one using the statement. * Otherwise, arrays will be dimensioned f..."
- 16:2616:26, 20 April 2022 diff hist +2,094 N OCT$ Created page with "The OCT$ function returns the base-8 octal representation of an INTEGER, LONG or _INTEGER64 value as a STRING. {{PageSyntax}} : {{Parameter|result$}} = OCT$({{Parameter|number}}) {{PageDescription}} * The OCT$ function returns the octal (base-8) representation of {{Parameter|number}}. * {{Parameter|number}} can be any integer value. * No leading space is returned. * VAL can convert octal string values to decimal when the "&O" prefix is..."
- 16:2516:25, 20 April 2022 diff hist +2,436 N 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..."
- 16:2016:20, 20 April 2022 diff hist +1,442 N ON...GOTO Created page with "ON...GOTO is a control-flow statement that branches to a line or label in a list depending on a numerical expression. {{PageSyntax}} : '''ON''' {{Parameter|numericalExpression}} GOTO {{Parameter|labelOrNumber}}[,{{Parameter|labelOrNumber}}][,...] {{PageDescription}} * {{Parameter|numericalExpression}} represents the ''line'' or ''label'' that the program should branch to: 1 branches to the first line or label in the list, 2 branches to the second, etc. * The..."
- 16:2016:20, 20 April 2022 diff hist +1,805 N ON...GOSUB Created page with "ON...GOSUB is a control-flow statement that branches to a line or label in a list depending on a numerical expression. {{PageSyntax}} : '''ON''' {{Parameter|numericalExpression}} GOSUB {{Parameter|labelOrNumber}}[,{{Parameter|labelOrNumber}}][,...] {{PageDescription}} * {{Parameter|numericalExpression}} represents the ''line'' or ''label'' that the program should branch to: 1 branches to the first line or label in the list, 2 branches to the second, etc. * Th..."
- 16:1816:18, 20 April 2022 diff hist +9,962 N KEY Created page with "The KEY n statement is used to assign a "soft key" string or a flag and scan code to a function key or display function soft key assignments. {{PageSyntax}} : '''KEY ''n%'', ''textString$''''' : '''KEY ''n%'', CHR$(''keyFlag%'') + CHR$(''scanCode'')''' ==Function Soft Key Strings (1 to 10, 30 & 31)== <center>'''Assigning "Softkey" STRING values to function key press events'''</center> * n% is the number 1 to 10 (F1 to F10), 30 or 31 (F11 or F12) of the f..."
- 16:1716:17, 20 April 2022 diff hist +1,150 N STOP Created page with "The '''STOP''' statement is used to stop program execution when troubleshooting a program or to suspend event trapping. {{PageSyntax}} :: STOP * STOP used in the Qbasic IDE does not close any files or go to the operating system. It returns to the IDE. * In the QB64 compiler, STOP closes the program window and returns to the IDE when the code is compiled from there. * STOP is ONLY used for debugging purposes and should not be used to exit programs! * STOP can also be..."
- 16:1716:17, 20 April 2022 diff hist +758 N ON Created page with "ON creates event procedure calls or enables event trapping. * Set the sub-procedure call for KEY(n), COM(n), PEN, PLAY, STRIG(n), TIMER, UEVENT * To turn on event trapping for ON COM (n), ON KEY (n), ON PEN, ON PLAY (n), ON STRIG (n), ON TIMER (n) and ON UEVENT. * In the case of ON ERROR the trap is also enabled until a subsequent ON ERROR statement. * ON procedures should be used only in the mai..."
- 16:1616:16, 20 April 2022 diff hist +762 N OFF Created page with "OFF is a flag that disables event-trappping for KEY(n), COM(n), PEN, PLAY, STRIG(n), TIMER, UEVENT. {{PageDescription}} * OFF can be used to turn off the display of soft-key assignments at the bottom of the screen using KEY. * OFF can also be used to disable an event-trapping in the following statements: KEY(n), COM(n), PEN, PLAY, STRIG(n), TIMER, UEVENT. The trap can be turne..."
- 16:0916:09, 20 April 2022 diff hist +4,484 N PRINT (file statement) Created page with "The PRINT # statement prints numeric or string expressions to a sequential file, IO port or device. {{PageSyntax}} ::: '''PRINT #''fileNumber&''''', [ [{{Parameter|expression}}] [{;|,] ... ] {{Parameters}} * {{Parameter|fileNumber&}} is the file number of a file or device opened for writing. See {{KW|OPEN}}. * {{Parameter|expression}} is a numeric or string expression to be written to the file. Quotes will be removed from strings. * The pri..."
- 16:0316:03, 20 April 2022 diff hist +2,466 N WRITE (file statement) Created page with "The WRITE # file statement writes a list of comma separated variable values to a sequential file or port. {{PageSyntax}} :{{KW|WRITE (file statement)|WRITE #}}{{Parameter|filenumber&}}[, {{Parameter|expressionList}}] {{PageDescription}} * {{Parameter|filenumber&}} is the number of the file or device {{KW|OPEN}}ed in the {{KW|OUTPUT}} or {{KW|APPEND}} modes. See: {{KW|FREEFILE}}. * {{Parameter|expressionList}} is a comma-separated list of va..."
- 16:0116:01, 20 April 2022 diff hist +219 N END FUNCTION Created page with "The '''END FUNCTION''' statement ends a FUNCTION procedure and must be at the last line. {{PageSyntax}} :: END FUNCTION * Ends a function procedure. ''See also:'' * FUNCTION * SUB {{PageNavigation}}"
- 16:0016:00, 20 April 2022 diff hist +1,285 N STR$ Created page with "The '''STR$''' function returns the STRING representation of a numerical value. {{PageSyntax}} :: result$ = '''STR$('''{{Parameter|number}}''')''' {{Parameters}} * {{Parameter|number}} is any numerical type value to convert. {{PageDescription}} * Returns any type number value with leading sign(space/minus) or decimal point when one exists in the numerical value. * If {{Parameter|number}} is positive, the STRING value returned will have a leading space chara..."
- 15:5915:59, 20 April 2022 diff hist +1,534 N LTRIM$ Created page with "The LTRIM$ function removes leading space characters from a STRING value. {{PageSyntax}} :{{Parameter|return$}} = LTRIM$({{Parameter|text$}}) {{PageDescription}} * {{Parameter|text$}} is the STRING value to trim. * If {{Parameter|text$}} contains no leading space characters, it is returned unchanged. * Convert fixed length STRING values by using a different {{parameter|return$}} variable. * Can be used to trim the leading space of a positive numer..."
- 15:5815:58, 20 April 2022 diff hist +2,145 N SHELL (function) Created page with "The '''SHELL''' function displays the console and returns the INTEGER code value sent when the external program exits. {{PageSyntax}} ::: return_code = '''SHELL(''DOScommand$'')''' {{Parameters}} * The literal or variable STRING ''command'' parameter can be any valid external command or call to another program. ''Usage:'' * A SHELL to a QB64 EXE program with an exit return code parameter after END or SYSTEM will return that code value. * The return_..."
- 15:5815:58, 20 April 2022 diff hist +1,205 N SYSTEM Created page with "The {{KW|SYSTEM}} statement immediately closes a program and returns control to the operating system. {{PageSyntax}} :'''SYSTEM''' [return_code%] {{Parameters}} * QB64 allows a ''code'' number to be used after SYSTEM to be read in another program module by the SHELL or _SHELLHIDE functions. ''Usage:'' * This command should be used to close a program quickly instead of pausing with END or nothing at all. * A code can be added after the statement to send..."
- 15:5715:57, 20 April 2022 diff hist +28,262 N Unicode Created page with "{| border="1" cellspacing="0" frame="box" width="100%" style="text-align: center; font-family: monospace;" |- | width="4%" | ! width="6%" | .0 || width="6%" | .1 ! width="6%" | .2 || width="6%" | .3 ! width="6%" | .4 || width="6%" | .5 ! width="6%" | .6 || width="6%" | .7 ! width="6%" | .8 || width="6%" | .9 ! width="6%" | .A || width="6%" | .B ! width="6%" | .C || width="6%" | .D ! width="6%" | .E || width="6%" | .F |- ! <br />0.<br /> |<span style="font-size..."
- 15:5515:55, 20 April 2022 diff hist +4,253 N 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 ..."
- 15:1015:10, 20 April 2022 diff hist +1,405 N LOCK 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..."
- 15:0915:09, 20 April 2022 diff hist +14,812 N PLAY Created page with "'''PLAY''' is a statement that plays notes of sound through the sound card in QB64 using a command STRING. {{PageSyntax}} ::: '''PLAY ''commandstring$''''' {{Parameters}} * The ''commandstring'' can be any literal or variable STRING consisting of the following uppercase or lowercase commands: :*'''O'''n - Sets the current octave (from 0 to 6). Example: '''{{text|PLAY "O3"|green}}''' :*'''<''' - Down one octave (cannot be below zero). Example: '''{{text|PLAY "..."
- 15:0615:06, 20 April 2022 diff hist +1,936 N Windows Printer Settings Created page with "There are some '''Windows command line statements''' that allow one to ''(i)'' identify the current Windows default printer (as well as other printers associated with a PC) and ''(ii)'' change the default to a different printer. A program can use SHELL statements in QB64 to execute those operating system commands. See the following examples provided by forum member '''DonW''': ==Contents== * This code issues the command to display a PC's list of printers and rout..."