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).

Logs
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 16:48, 20 April 2022 BigRon55 talk contribs created page 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:46, 20 April 2022 BigRon55 talk contribs created page 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:44, 20 April 2022 BigRon55 talk contribs created page 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:43, 20 April 2022 BigRon55 talk contribs created page 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:43, 20 April 2022 BigRon55 talk contribs created page 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:38, 20 April 2022 BigRon55 talk contribs created page 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:37, 20 April 2022 BigRon55 talk contribs created page 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:37, 20 April 2022 BigRon55 talk contribs created page 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:35, 20 April 2022 BigRon55 talk contribs created page 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:33, 20 April 2022 BigRon55 talk contribs created page 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}}")
  • 16:32, 20 April 2022 BigRon55 talk contribs created page 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...")
  • 16:32, 20 April 2022 BigRon55 talk contribs created page 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:31, 20 April 2022 BigRon55 talk contribs created page 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:30, 20 April 2022 BigRon55 talk contribs created page 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}}")
  • 16:30, 20 April 2022 BigRon55 talk contribs created page 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:28, 20 April 2022 BigRon55 talk contribs created page 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:28, 20 April 2022 BigRon55 talk contribs created page 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:27, 20 April 2022 BigRon55 talk contribs created page 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:26, 20 April 2022 BigRon55 talk contribs created page 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:25, 20 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...")
  • 16:20, 20 April 2022 BigRon55 talk contribs created page 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:20, 20 April 2022 BigRon55 talk contribs created page 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:18, 20 April 2022 BigRon55 talk contribs created page 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:17, 20 April 2022 BigRon55 talk contribs created page 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:17, 20 April 2022 BigRon55 talk contribs created page 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:16, 20 April 2022 BigRon55 talk contribs created page 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:09, 20 April 2022 BigRon55 talk contribs created page 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:03, 20 April 2022 BigRon55 talk contribs created page 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:01, 20 April 2022 BigRon55 talk contribs created page 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:00, 20 April 2022 BigRon55 talk contribs created page 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:59, 20 April 2022 BigRon55 talk contribs created page 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:58, 20 April 2022 BigRon55 talk contribs created page 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:58, 20 April 2022 BigRon55 talk contribs created page 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:57, 20 April 2022 BigRon55 talk contribs created page 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:55, 20 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 ...")
  • 15:10, 20 April 2022 BigRon55 talk contribs created page 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:09, 20 April 2022 BigRon55 talk contribs created page 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:06, 20 April 2022 BigRon55 talk contribs created page 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...")
  • 15:04, 20 April 2022 BigRon55 talk contribs created page LPRINT USING (Created page with "The LPRINT USING statement sends formatted data to LPT1, the parallel port printer. {{PageSyntax}} : '''LPRINT''' [''text$''{;|,}] '''USING''' {{Parameter|template$}}; {{Parameter|variable}}[; ...][{;|,}] {{Parameters}} * Literal or variable STRING ''text$'' can be placed between LPRINT and USING or it can be included in the {{Parameter|template$}}. * A semicolon or comma may follow the {{Parameter|text$}} to stop or tab the print cursor before th...")
  • 15:04, 20 April 2022 SMcNeill 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...")
  • 15:04, 20 April 2022 BigRon55 talk contribs created page LPRINT (Created page with "The LPRINT statement sends string text or numerical values to a parallel port (LPT1) printer in QBasic or a USB printer in '''QB64'''. {{PageSyntax}} :LPRINT [{{Parameter|expression}}] [{;|,}] {{PageDescription}} * {{Parameter|expression}} is one or more text or numerical expressions separated by a semi-colon (;) or comma (,). * Syntax is the same as PRINT, but cannot use a port number. * Program does not have to OPEN the LPT1: parallel port. * Assume...")
  • 15:03, 20 April 2022 SMcNeill talk contribs created page OR (Created page with "The OR numerical operator returns a comparative bit value of 1 if either value's bit is on. {{PageSyntax}} : {{Parameter|result}} = firstValue OR secondValue {{PageDescription}} * If both bits are off, it returns 0. * If one or both bits are on then it returns 1. * OR never turns off a bit and can be used only to turn a bit on. {{Template:LogicalTruthTable}} {{PageExamples}} ''Example 1:'' OR always turns bits on! Never off. {{CodeStart}} '' '' a% =...")
  • 15:03, 20 April 2022 SMcNeill talk contribs created page NOT (Created page with "NOT is a boolean logical operator that will change a false statement to a true one and vice-versa. {{PageSyntax}} : ''True'' = -1: ''False'' = NOT True {{PageDescription}} * In QBasic, True = -1 and False = 0 in boolean logic and evaluation statements. * NOT evaluates a value and returns the bitwise opposite, meaning that {{InlineCode}}NOT 0 = -1{{InlineCodeEnd}}. * Often called a negative logic operator, it returns the opposite of a value as...")
  • 15:03, 20 April 2022 SMcNeill talk contribs created page NAME (Created page with "The NAME statement changes the name of a file or directory to a new name. {{PageSyntax}} : NAME {{Parameter|oldFileOrFolderName$}} '''AS''' {{Parameter|newFileOrFolderName$}} {{PageDescription}} * {{Parameter|oldFileOrFolderName$}} and {{Parameter|newFileOrFolderName$}} are variables or literal STRINGs in quotes. Paths can be included. * If the two paths are different, the statement moves the original file to the new path and renames it. * If the path is...")
  • 15:00, 20 April 2022 SMcNeill talk contribs created page Segment (Created page with "The memory '''segment''' is the hexadecimal byte address in relation to a segment register. The value in a Segment register is multiplied by 16 or shifted one hexadecimal byte to the left(this adds an extra 0 to the end of the hex number). The value in the Offset register is added to it. So, the Absolute address for any combination of Segment and Offset is found using the formula: :::AbsoluteMemoryAddress = (Segment value * 16) + Offset value ''Example:'' {{WhiteS...")
  • 14:59, 20 April 2022 SMcNeill talk contribs created page SCREEN (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...")
  • 14:58, 20 April 2022 SMcNeill talk contribs created page PEEK (Created page with "The '''PEEK''' function returns the value that is contained at a certain memory address offset. '''QB64 currently has limited access!''' {{PageSyntax}} :: variable = PEEK(''segment_offset'') * Reads the specified memory ''segment_offset'' value. * Use DEF SEG before PEEK to specify which memory segment to work in. * PEEK only reads the memory byte value. Not certain bits. (See AND) * Important SCREEN segments using PEEK and [[POKE]...")
  • 14:58, 20 April 2022 SMcNeill talk contribs created page POKE (Created page with "The '''POKE''' statement sets the value of a specified memory address offset. '''QB64 currently has limited access!''' {{PageSyntax}} :: POKE ''segment_offset'', ''offset_value'' * Writes a value to the ''segment_offset'' address in memory. * POKE can only be used to set a value from 0 to 255 (one byte). * A segment should be defined using DEF SEG, if you don't define a segment qbasics ordinary segment will be used. * POKE sends byte values to memory areas. It d...")
  • 14:58, 20 April 2022 SMcNeill talk contribs created page VARSEG (Created page with "The '''VARSEG''' function returns an INTEGER value that is the segment part of a variable or array memory address. {{PageSyntax}} :: DEF SEG = VARSEG(variable_name[(start_index)]) * If variablename is not defined before VARPTR or VARSEG is called, the variable is created and its address is returned. * The start index is the lowest index of an array variable when used. * When a string variable, VARSEG returns the segment location address of the first by...")
  • 14:57, 20 April 2022 SMcNeill talk contribs created page VARPTR$ (Created page with "'''VARPTR$''' is a memory function that returns a STRING representation of a variable's memory address value for use in a DRAW or PLAY statement. {{PageSyntax}} :: string_value$ = VARPTR$(''variable'') * Can use any string or numerical variable reference '''existing''' in memory. * If the parameter value is from an array it must be dimensioned already. Cannot use fixed length string arrays. * When using '''numerical''' ''variable'' values in ...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)