User contributions for SMcNeill

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

20 April 2022

  • 21:4621:46, 20 April 2022 diff hist +4,902 N STICKCreated page with "The '''STICK''' function returns the directional axis coordinate move of game port (&H201) joystick or USB controller devices. {{PageSyntax}} :: coordinate_move% = STICK(direction%) QB64 {{PageSyntax}} :: coordinate_move% = STICK(''direction%''[, ''axis_number%'']) ''Description:'' * '''QB64''' allows any number of coordinate pairs for more than two game device controllers. STICK will not read a mouse axis. * ''axis_number'' can be used as the next axis parameter..."
  • 21:4521:45, 20 April 2022 diff hist +2,550 N SQRCreated page with "The '''SQR''' function returns the square root of a numerical value. {{PageSyntax}} :: square_root = '''SQR('''value''')''' * The ''square root'' returned is normally a SINGLE or DOUBLE numerical value. * The ''value'' parameter can be any '''positive''' numerical type. '''Negative parameter values will not work!''' * Other exponential root functions can use fractional exponents(^) enclosed in '''parenthesis only'''. EX: {{text|root <nowiki> = </nowiki> c..."
  • 21:4521:45, 20 April 2022 diff hist +1,125 N SPCCreated page with "The {{KW|SPC}} function is used in PRINT and LPRINT statements to print or output a number of space characters. {{PageSyntax}} ::: '''SPC({{Parameter|count%}})''' {{Parameters}} * ''count'' designates the number of column spaces to move the cursor in a PRINT statement. ''Usage:'' * When used in a PRINT statement, ** {{Parameter|count%}} is the number of space characters to print, overwriting existing characters. ** If {{Parameter|count%}} is greater..."
  • 21:4421:44, 20 April 2022 diff hist +3,943 N SPACE$Created page with "The {{KW|SPACE$}} function returns a {{KW|STRING}} consisting of a number of space characters. {{PageSyntax}} :''result$'' = '''SPACE$({{Parameter|count&}})''' {{Parameters}} * {{Parameter|count&}} is the number of space characters to repeat. Cannot use negative values! ''Usage:'' * Semicolons can be used to combine spaces with text STRING or numerical values. * Concatenation using + can be used to combine STRING text values only. * Spaces are often use..."
  • 21:4421:44, 20 April 2022 diff hist +6,970 N SOUNDCreated page with "'''SOUND''' sets frequency and duration of sounds from the internal PC speaker if the computer has one or the sound card in QB64. {{PageSyntax}} :: SOUND ''frequency'', ''duration'' {{PageDescription}} * ''Frequency'' is any literal or variable value from 37 to 32767, but 0 is allowed for delays. * ''Duration'' is any literal or variable number of TIMER ticks with a duration of 1/18th second. 18 = one second. * In '''QB64''' the sound comes from the soundcard and..."
  • 21:4321:43, 20 April 2022 diff hist +1,346 N SLEEPCreated page with "SLEEP pauses the program indefinitely or for a specified number of seconds, program is unpaused when the user presses a key or when the specified number of seconds has passed. {{PageSyntax}} :: SLEEP [seconds] * Seconds are an optional INTEGER value. If there is no parameter, then it waits for a keypress. * Any user keypress will abort the SLEEP time. * SLEEP does NOT clear the keyboard buffer so it can affect INKEY$, INPUT, INPUT$ and LINE INPUT..."
  • 21:4321:43, 20 April 2022 diff hist +683 N SGNCreated page with "The '''SGN''' function returns the sign of a number value. {{PageSyntax}} :: sign% = SGN(value) * Returns -1 when a sign is negative, 0 when a value is zero, or 1 when a value is positive. * Function is used to store the original sign of a number. * '''QB64''' allows programs to return only _UNSIGNED variable values using a _DEFINE statement. ''Example:'' Checking and changing negative values to positive ones. {{CodeStart}} n = -100 {{Cl|IF...THEN|IF}} {..."
  • 17:1917:19, 20 April 2022 diff hist +1,486 N LOCCreated page with "The LOC function returns the status of a serial (COM) port received buffer or the current byte position in an open file. {{PageSyntax}} : {{Parameter|bytes%}} = LOC({{Parameter|fileOrPortNumber%}}) * {{Parameter|fileOrPortNumber%}} is the number used in the port OPEN AS statement. * Returns 0 if the buffer is empty. Any value above 0 indicates the COM port has received data. * Use it in conjunction with INPUT$ to get the data bytes received. * Can also be..." Tag: visualeditor-switched
  • 17:1817:18, 20 April 2022 diff hist +26 N WHILERedirected page to WHILE...WEND current Tags: New redirect visualeditor
  • 17:1717:17, 20 April 2022 diff hist +26 WENDRedirected page to WHILE...WEND current Tags: New redirect visualeditor
  • 17:1617:16, 20 April 2022 diff hist +1,436 N WHILE...WENDCreated page with "The {{KW|WHILE...WEND}} statement is used to repeat a block of statements while the condition is met. {{PageSyntax}} :{{KW|WHILE}} {{Parameter|condition}} :. :. :. :{{KW|WEND}} {{PageDescription}} * {{Parameter|condition}} is a numeric expression used to determine if the loop will execute. * {{Parameter|statements}} will execute repeatedly while {{Parameter|condition}} is a non-zero value. * EXIT WHILE can be used for emergency exits from the loop in QB64 only. *..."
  • 17:1617:16, 20 April 2022 diff hist −1,436 WENDBlanked the page Tag: Blanking
  • 17:1417:14, 20 April 2022 diff hist +1,436 N WENDCreated page with "The {{KW|WHILE...WEND}} statement is used to repeat a block of statements while the condition is met. {{PageSyntax}} :{{KW|WHILE}} {{Parameter|condition}} :. :. :. :{{KW|WEND}} {{PageDescription}} * {{Parameter|condition}} is a numeric expression used to determine if the loop will execute. * {{Parameter|statements}} will execute repeatedly while {{Parameter|condition}} is a non-zero value. * EXIT WHILE can be used for emergency exits from the loop in QB64 only. *..."
  • 17:1317:13, 20 April 2022 diff hist +1,185 N WAITCreated page with "The {{KW|WAIT}} statement waits until the value read from an I/O port has certain bits set. {{PageSyntax}} :{{KW|WAIT}} {{Parameter|port%}}, {{Parameter|andMask%}}[, {{Parameter|xorMask%}}] {{PageDescription}} * The {{KW|WAIT}} statement reads a value from {{Parameter|port%}} using {{KW|INP}}. * If {{Parameter|xorMask%}} is specified, the value is {{KW|XOR}}'d with {{Parameter|xorMask%}}. It has the effect of "toggle these bits". * The value is then {{KW|AND}}'d with..."
  • 15:0415:04, 20 April 2022 diff hist +2,305 N 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:0315:03, 20 April 2022 diff hist +1,259 N ORCreated 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:0315:03, 20 April 2022 diff hist +2,848 N NOTCreated 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:0315:03, 20 April 2022 diff hist +1,085 N NAMECreated 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:0015:00, 20 April 2022 diff hist +957 N SegmentCreated 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:5914:59, 20 April 2022 diff hist +11,236 N SCREENCreated 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:5814:58, 20 April 2022 diff hist +2,909 N PEEKCreated 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:5814:58, 20 April 2022 diff hist +4,405 N POKECreated 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:5814:58, 20 April 2022 diff hist +1,220 N VARSEGCreated 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:5714:57, 20 April 2022 diff hist +3,789 N 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 ..."
  • 14:5714:57, 20 April 2022 diff hist +560 N SADDCreated page with "The '''SADD''' function returns the address of a STRING variable as an offset from the current data segment. {{PageSyntax}} :: SADD(stringvariable) * The argument may be a simple string variable or a single element of a string array. You may not use fixed-length strings. * Use this function carefully because strings can move in the BASIC string space storage area at any time. * Adding characters may produce a run-time error. Don't add characters to the ends of pa..."
  • 14:5714:57, 20 April 2022 diff hist +1,274 N VARPTRCreated page with "The '''VARPTR''' function returns an INTEGER value that is the offset part of the variable or array memory address within it's segment. {{PageSyntax}} :: offset% = VARPTR(variable_name[(reference_index%)]) * If variablename is not defined before VARPTR or VARSEG is called, the variable is created and it's address is returned. * Reference index is used to set the offset address of an array index, not necessarily the lowest index. * When a string variable, VAR..."
  • 14:5714:57, 20 April 2022 diff hist +3,314 N VALCreated page with "The '''VAL''' Function returns the decimal numerical equivalent value of a STRING numerical value. {{PageSyntax}} :: value = VAL(string_value$) * VAL converts string numbers to numerical values including decimal point values and prefixed "&H" hexadecimal, "&O" octal. * VAL conversion stops at non-numeric characters except for letter "D" or "E" exponential notation values. :String values with "D" and "E" letters between numbers may be converted also! EX:..."
  • 14:5614:56, 20 April 2022 diff hist +586 N UNTILCreated page with "The '''UNTIL''' condition is used in DO...LOOP exit verifications. {{PageSyntax}} :: DO [UNTIL] evaluation :: . :: . :: . :: LOOP UNTIL evaluation * Only one conditional evaluation can be made at the start or the end of a DO...LOOP. * DO UNTIL evaluates a condition before and inside of the loop. The loop may not run at all. * LOOP UNTIL evaluates a condition inside of the loop. It has to loop once. * Skips the loop or loops until an evaluation becomes True...."
  • 14:5614:56, 20 April 2022 diff hist +1,329 N UNLOCKCreated page with "The {{KW|UNLOCK}} statement opens access to parts or all of a file to other programs and network users. {{PageSyntax}} :<code>{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}</code> :<code>{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}, {{Parameter|record&}}</code> :<code>{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}, [{{Parameter|firstRecord&}}] TO {{Parameter|lastRecord&}}</code> {{PageDescription}} * {{Parameter|fileNumber%}} is the file number of the file to unlock. * In the..."
  • 14:5514:55, 20 April 2022 diff hist +1,098 N UBOUNDCreated page with "The {{KW|UBOUND}} function returns the largest valid index (upper bound) of an array dimension. {{PageSyntax}} :''result%'' = {{KW|UBOUND}}(arrayName[, dimension%]) {{PageDescription}} * {{Parameter|arrayName}} specifies the name of the array. * {{Parameter|dimension%}} specifies the dimension number, starting with <code>1</code> for the first dimension. ** If omitted, {{Parameter|dimension%}} is assumed to be <code>1</code>. ** If {{Parameter|dimension%}} is less t..."
  • 14:5414:54, 20 April 2022 diff hist +5,215 N SINCreated page with "The {{KW|SIN}} function returns the vertical component or sine of an angle measured in radians. {{PageSyntax}} ::: value! = '''SIN('''''radian_angle!''''')''' {{Parameters}} * The ''radian_angle'' must be measured in radians from 0 to 2 * Pi. {{PageDescription}} * To convert from degrees to radians, multiply degrees * π/180. * SINE is the vertical component of a unit vector in the direction theta (θ). * Accuracy can be determined as SINGLE by defau..."
  • 14:5414:54, 20 April 2022 diff hist +2,440 N TIME$Created page with "The '''TIME$''' Function returns a STRING representation of the current computer time in a 24 hour format. {{PageSyntax}} :: PRINT "Present time = "; '''TIME$''' * Returns the present computer time in hh:mm:ss 24 hour format: "19:20:33" * Uses 2 colon (:) separators between hours, minutes and seconds * Hour values range from "00" to "23" starting from midnite. * Minutes and seconds range from "00" to "59" * Continuous TIME$ calls may lag if a QBasic program is mi..."
  • 14:5414:54, 20 April 2022 diff hist +3,052 N TANCreated page with "The TAN function returns the ratio of SINe to COSine or tangent value of an angle measured in radians. {{PageSyntax}} ::: tangent! = '''TAN('''''radian_angle!''''')''' {{Parameters}} * The ''radian_angle'' must be measured in radians. {{PageDescription}} * To convert from degrees to radians, multiply degrees * π/180. * TANGENT is the gradient or slope of the circle or arc at SIN(θ) / COS(θ). Do not use division when the COS = 0..."
  • 14:5314:53, 20 April 2022 diff hist +1,927 N TABCreated page with "The {{KW|TAB}} function is used in PRINT and LPRINT statements to move to a specified column position. {{PageSyntax}} :{{KW|TAB}}({{Parameter|column%}}) {{PageDescription}} * Space characters are printed until the print cursor reaches the designated {{Parameter|column%}}, overwriting existing characters. * If a subsequent TAB ''column%'' is less than the current position, TAB moves the next print to that column on the next row. * ASCII CHR$(9) can be..."
  • 14:5314:53, 20 April 2022 diff hist +4,807 N Bitwise OperatorsCreated page with "Bitwise operators are much like the regular mathematics operators (+, * etc.) but are defined in terms of the individual bits of their operands. The full list of bitwise operators, with a brief summary of its operation: * '''AND''': True if both inputs are true * '''OR''': True if one or both inputs are true * '''NOT''': Invert all bits * '''XOR''': True if exactly one input is true * '''IMP''': True if both inputs are the same * '''EQV''': True unless first input is tru..."
  • 14:5214:52, 20 April 2022 diff hist +1,097 N LBOUNDCreated page with "The LBOUND function returns the smallest valid index (lower bound) of an array dimension. {{PageSyntax}} :{{Parameter|result%}} = LBOUND({{Parameter|arrayName}}[, {{Parameter|dimension%}}]) {{PageDescription}} * {{Parameter|arrayName}} specifies the name of the array. * {{Parameter|dimension%}} specifies the dimension number, starting with <code>1</code> for the first dimension. ** If omitted, {{Parameter|dimension%}} is assumed to be <code>1</code>. ** If {{..."
  • 14:5214:52, 20 April 2022 diff hist +1,395 N KILLCreated page with "The KILL statement deletes a file designated by a STRING value or variable. {{PageSyntax}} : KILL {{Parameter|fileSpec$}} * {{Parameter|fileSpec$}} is a literal or variable string path and filename. Wildcards * and ? can be used with caution. ::'''*''' denotes one or more wildcard letters of a name or extension ::'''?''' denotes one wildcard letter of a name or extension * {{Parameter|fileSpec$}} can include a path that can be either relative to the prog..."
  • 14:5214:52, 20 April 2022 diff hist +9,965 N KEY LISTCreated 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..."
  • 14:5214:52, 20 April 2022 diff hist +2,480 N KEY(n)Created page with "'''KEY(n)''' assigns, enables, disables or suspends event trapping of a keypress by setting the flag ON, STOP or OFF. {{PageSyntax}} : KEY({{Parameter|number}}) {ON | OFF | STOP} {{PageDescription}} * Predefined and user defined KEY event number assignments to use with KEY(n): {{WhiteStart}} '''1 to 10'''.............Reserved '''F1 to F10''' function keys only. '''11, 12, 13 and 14'''...Reserved '''Up, Left, Right and Down''' numeric..."
  • 14:5114:51, 20 April 2022 diff hist +9,965 N KEY nCreated 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..."
  • 14:5114:51, 20 April 2022 diff hist +1,915 N INTERRUPTXCreated page with "The INTERRUPTX statement is an assembly routine for accessing computer information registers. ==Legacy support== * Registers are emulated in '''QB64''' to allow older programs to be compiled. To enable mouse input in your programs, the recommended practice is to use _MOUSEINPUT and related functions. {{PageSyntax}} : CALL INTERRUPTX({{Parameter|intNum}}, {{Parameter|inRegs}}, {{Parameter|outRegs}}) {{Parameters}} * Registers are emulated in QB64 and..."
  • 14:5014:50, 20 April 2022 diff hist +1,914 N INTERRUPTCreated page with "The INTERRUPT statement is an assembly routine for accessing computer information registers. ==Legacy support== * Registers are emulated in '''QB64''' to allow older programs to be compiled. To enable mouse input in your programs, the recommended practice is to use _MOUSEINPUT and related functions. {{PageSyntax}} : CALL INTERRUPT({{Parameter|intNum}}, {{Parameter|inRegs}}, {{Parameter|outRegs}}) {{Parameters}} * Registers are emulated in QB64 and t..."
  • 14:5014:50, 20 April 2022 diff hist +3,101 N INPUT$Created page with "The INPUT$ function is used to receive data from the user's keyboard, an open file or an open port. {{PageSyntax}} : {{Parameter|result$}} = INPUT$({{Parameter|numberOfBytes%}}[, fileOrPortNumber]) * Keyboard input is limited to the INTEGER {{Parameter|numberOfBytes%}} (characters) designated by program. * The keyboard is the default device when a file or port number is omitted. The {{Parameter|numberOfBytes%}} is number of key presses to read. * INPUT$ w..."
  • 14:5014:50, 20 April 2022 diff hist +4,196 N INPUT (file statement)Created page with "The INPUT # file or port statement reads sequential data using one variable or a comma separated list of matching variable types. {{PageSyntax}} : INPUT #{{Parameter|fileNumber&}}, {{Parameter|variable1}}[, {{Parameter|variable2}}, ..., {{Parameter|variableN}}] {{Parameters}} * {{Parameter|fileNumber&}} is a positive LONG integer value used to OPEN the file FOR INPUT mode. * The type of the ''variable'' used defines the val..."
  • 14:4914:49, 20 April 2022 diff hist +5,327 N INPUTCreated page with "The INPUT statement requests a STRING or numerical keyboard entry from the user. {{PageSyntax}} : INPUT [;] "[Question or statement text]"{,|;} {{Parameter|variable}}[, ...] : INPUT ; {{Parameter|variable}}[, ...] {{Parameters}} * A semicolon after the INPUT keyword keeps the entry on the same row after enter is pressed and prevents the screen contents from rolling up. * The optional prompt "Question or statement text" must be a literal prede..."
  • 14:4914:49, 20 April 2022 diff hist +4,174 N INPCreated page with "INP returns a value from a computer register or port values at a specified physical address. {{PageSyntax}} : {{Parameter|i}} = INP({{Parameter|address}}) * '''QB64 has limited access to registers. VGA memory and registers are emulated.''' * Address can be a decimal or hexadecimal INTEGER value. * INP reads directly from a register or port address. * It does not require a DEF SEG memory segment address like PEEK or POKE do. * Reads color p..."
  • 14:4914:49, 20 April 2022 diff hist +730 N IMPCreated page with "The IMP logical operator converts the result of two comparative values and returns a bit result. {{PageSyntax}} : {{Parameter|result}} = {{Parameter|firstValue}} IMP {{Parameter|secondValue}} {{PageDescription}} * Returns a different result from AND, OR or XOR - see truth table below. * Evaluates if {{Parameter|firstValue}} '''''imp'''lies'' {{Parameter|secondValue}}. **If {{Parameter|firstValue}} is true then {{Parameter|secondValue}} must also..."
  • 14:4814:48, 20 April 2022 diff hist +870 N FREEFILECreated page with "The FREEFILE function returns a LONG value that is an unused file access number. {{PageSyntax}} : fileHandle& = FREEFILE {{PageDescription}} * FREEFILE values should be given to unique variables so that each file has a specific variable value assigned to it. * Once the number is assigned in an OPEN statement, the file number can later be used to read, write or CLOSE that file. * File numbers CLOSEd are made available to FREEFILE for re..."
  • 14:4714:47, 20 April 2022 diff hist +9,782 N FOR (file statement)Created page with "The OPEN statement is used to open a file or COM serial communications port for program input or output. {{PageSyntax}} : OPEN {{Parameter|fileName$}} ['''FOR''' {{Parameter|mode}}] [{{{KW|ACCESS}}|{{{KW|LOCK}}|SHARED}} [{READ|WRITE}] AS [#]{{Parameter|fileNumber&}} [LEN = {{Parameter|recordLength}}] ===Legacy ''GW-BASIC'' syntax=== : OPEN {{Parameter|modeLetter$}}, [#]{{Parameter|fileNumber&}}, {{Parameter|fileName$}}[, {{Parameter|recor..."
  • 14:4714:47, 20 April 2022 diff hist +6,239 N FILESCreated page with "The FILES statement is used to print a list of files in the current directory using a file specification. {{PageSyntax}} : FILES [{{Parameter|fileSpec$}}] {{PageDescription}} * {{Parameter|fileSpec$}} is a string expression or variable containing a path when required. * {{Parameter|fileSpec$}} can use the * and ? wildcard specifications: ** '''*''' denotes one or more wildcard characters in a filename or path specification as any legal file name character(s)..."
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)