User contributions for BigRon55

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

19 April 2022

  • 14:5614:56, 19 April 2022 diff hist +2,988 N REDIMCreated page with "A {{KW|REDIM}} statement can re-dimension one dynamic(flexible) array or a comma separated list of arrays. {{PageSyntax}} :REDIM [{{KW|_PRESERVE}}] [{{KW|SHARED}}] ArrayName[''typesuffix''] ({''max_element''|low_element[{{KW|TO}} ''upper_element'', ...]}) [{{KW|AS}} {{KW|TYPE|Type}}] {{PageDescription}} * Can change the number of elements in an array (the present array data is lost unless _PRESERVE is used). * Dynamic array element..."
  • 14:5514:55, 19 April 2022 diff hist +3,080 N READCreated page with "The '''READ''' statement reads values from a DATA field and assigns them to one or a comma separated list of variables. {{PageSyntax}} ::: READ value1$[, value2!, value3%, ...] * READ statements assign variables to DATA statement values on a one-to-one basis sequentially. * A single READ statement may access one or more DATA values. They are accessed in the order set. * Several READ statements may access the same DATA statement block at the foll..."
  • 14:5414:54, 19 April 2022 diff hist +3,756 N RANDOMIZECreated page with "'''RANDOMIZE''' is used with a seed value to generate different random number sequences using the RND function. {{PageSyntax}} :: '''RANDOMIZE''' [USING] '''{''seednumber''|TIMER}''' * The ''seed number'' can be ANY positive or negative numerical type value. The TIMER value is often used to change RND output each run. * If the ''seed number'' is omitted, the program will display: '''Random-number seed (-32768 to 32767)?''' request on screen. * '''USING'''..."
  • 14:5314:53, 19 April 2022 diff hist +4,316 N RANDOMCreated page with "'''RANDOM''' is used in an OPEN statement to read(GET) from or write(PUT) to a file. {{PageSyntax}} :: OPEN Filename$ FOR RANDOM AS #1 [LEN = ''recordlength%''] * RANDOM is the Default mode if no mode is given in the OPEN statement. * It creates the file if the legal file name given does NOT exist. * As a RANDOM file, it can read or write any record using GET and/or PUT statements. * ''Recordlength%'' is determined by getting the LEN of a [..."
  • 14:2514:25, 19 April 2022 diff hist +3,397 N UNSIGNEDCreated page with "{{DISPLAYTITLE:_UNSIGNED}} _UNSIGNED defines a numerical value as being only positive. {{PageSyntax}} : DIM {{Parameter|variable}} AS [{{KW|_UNSIGNED}}] {{Parameter|datatype}} : _DEFINE {{Parameter|letterRange}} AS [{{KW|_UNSIGNED}}] {{Parameter|datatype}} {{PageDescription}} * Datatype can be any of the following: INTEGER, LONG, _BIT, _BYTE, _INTEGER64, _OFFSET *'''SINGLE, DOUBLE and _FLOAT variable types can..."
  • 14:2414:24, 19 April 2022 diff hist +2,663 N INTEGERCreated page with "INTEGER is a 2-byte number type definition that can hold whole numerical values. {{PageSyntax}} : DIM ''variable'' AS INTEGER * Integers do not use decimal point values but will round those off to the nearest even whole number. * QBasic integer values can range from -32768 to 32767 without an "overflow" error. * For larger integer values use the LONG integer type. * '''QB64''' INTEGER values greater than 32767 become negative signed values instead..."
  • 14:2214:22, 19 April 2022 diff hist +2,283 N PALETTECOLOR (function)Created page with "{{DISPLAYTITLE:_PALETTECOLOR (function)}} The _PALETTECOLOR function is used to return the 32 bit attribute color setting of an image or screen page handle's palette. {{PageSyntax}} : {{Parameter|color32Value&}} = _PALETTECOLOR({{Parameter|attributeNumber%}}, {{Parameter|imgHandle&}}) {{PageDescription}} * {{Parameter|attributeNumber%}} is the color attribute value from 0 to 255 for 1, 4 or 8 bit images. * {{P..."
  • 14:2114:21, 19 April 2022 diff hist +7,366 N POINTCreated page with "The '''POINT''' function returns the pixel COLOR attribute at a specified graphics coordinate or the current graphic cursor position. ''Color'' {{PageSyntax}} ::::color_attribute% = '''POINT ('''''column%, row%''''')''' ''Graphic cursor position'' {{PageSyntax}} ::::pointer_coordinate% = '''POINT('''{0|1|2|3}''')''' {{Parameters}} Graphic Color syntax: * The INTEGER ''column'' and ''row'' coordinates designate the pixel position color on the screen to re..."
  • 14:2014:20, 19 April 2022 diff hist +1,216 N LONGCreated page with "LONG defines a variable as a 4 byte number type definition for larger INTEGER values. {{PageSyntax}} : DIM {{Parameter|variable}} AS LONG * LONG integer values range from -2147483648 to 2147483647. * '''QB64''''s _UNSIGNED LONG integer values range from 0 to 4294967295. * '''QB64''' _UNSIGNED _INTEGER64 values range from 0 to 18446744073709551615. * Decimal point values assigned to a LONG variable will be rounded to the nearest..."
  • 14:1114:11, 19 April 2022 diff hist +932 N ROUNDCreated page with "{{DISPLAYTITLE:_ROUND}} The _ROUND function rounds to the closest even INTEGER, LONG or _INTEGER64 numerical value. {{PageSyntax}} : {{Parameter|value}} = _ROUND({{Parameter|number}}) {{PageDescription}} * Can round SINGLE, DOUBLE or _FLOAT floating decimal point parameter values. * Can be used when numerical values exceed the limits of CINT or CLNG. * Rounding is done to the closest even integer value. The same as..."
  • 14:1014:10, 19 April 2022 diff hist +2,694 N RGBA32Created page with "{{DISPLAYTITLE:_RGBA32}} The _RGBA32 function returns the 32-bit ''RGBA'' color value with the specified red, green, blue and alpha component intensities. {{PageSyntax}} : {{Parameter|color32value~&}} = _RGBA32({{Parameter|red&}}, {{Parameter|green&}}, {{Parameter|blue&}}, {{Parameter|alpha&}}) {{PageDescription}} * The value returned is a 32-bit _UNSIGNED LONG color value. * '''Return variable types must be _UNSIGNED LONG or resulting color..."
  • 14:1014:10, 19 April 2022 diff hist +2,715 N RGBACreated page with "{{DISPLAYTITLE:_RGBA}} The _RGBA function returns the closest palette index (legacy SCREEN modes) OR the 32-bit LONG color value (32-bit screens). {{PageSyntax}} : {{Parameter|colorIndex~&}} = _RGBA({{Parameter|red&}}, {{Parameter|green&}}, {{Parameter|blue&}}, {{Parameter|alpha&}}[, {{Parameter|imageHandle&}}]''')''' * The value returned is either the closest color attribute number or a 32-bit _UNSIGNED LONG color value. * '''Return variable typ..."
  • 14:0914:09, 19 April 2022 diff hist +6,027 N RGB32Created page with "{{DISPLAYTITLE:_RGB32}} The _RGB32 function returns the 32-bit ''RGBA'' color value with specified red, green and blue component intensities and optional alpha. {{PageSyntax}} ''Original syntax'': :{{Parameter|color32value~&}} = _RGB32({{Parameter|red&}}, {{Parameter|green&}}, {{Parameter|blue&}}) ''Alternative Syntax 2'': :{{Parameter|color32value~&}} = _RGB32({{Parameter|red&}}, {{Parameter|green&}}, {{Parameter|blue&}}, {{Parameter|alpha&}}) ''Alternat..."
  • 14:0814:08, 19 April 2022 diff hist +3,565 N RGBCreated page with "{{DISPLAYTITLE:_RGB}} The _RGB function returns the closest palette attribute index (legacy SCREEN modes) OR the LONG 32-bit color value (32-bit screens). {{PageSyntax}} : {{Parameter|colorIndex~&}} = _RGB({{Parameter|red&}}, {{Parameter|green&}}, {{Parameter|blue&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * The value returned is either the closest color attribute number or a 32-bit _UNSIGNED LONG color value. * '''Return variable typ..."
  • 14:0714:07, 19 April 2022 diff hist +1,374 N RESIZEWIDTHCreated page with "{{DISPLAYTITLE:_RESIZEWIDTH}} The _RESIZEWIDTH function returns the user resized screen pixel width if $RESIZE:ON allows it and _RESIZE returns -1 {{PageSyntax}} : {{Parameter|newWidth&}} = _RESIZEWIDTH {{PageDescription}} * _RESIZE function must return true (-1) before the requested screen dimensions can be returned by the function. * The program should decide if the request is allowable for proper program i..."
  • 14:0614:06, 19 April 2022 diff hist +1,381 N RESIZEHEIGHTCreated page with "{{DISPLAYTITLE:_RESIZEHEIGHT}} The _RESIZEHEIGHT function returns the user resized screen pixel height if $RESIZE:ON allows it and _RESIZE returns -1 {{PageSyntax}} : {{Parameter|newHeight&}} = _RESIZEHEIGHT {{Parameter|Details:}} * _RESIZE function must return true (-1) before the requested screen dimensions can be returned by the function. * The program should decide if the request is allowable for proper p..."
  • 14:0514:05, 19 April 2022 diff hist +1,545 N RESIZE (function)Created page with "{{DISPLAYTITLE:_RESIZE (function)}} The _RESIZE function returns true (-1) when a user has attempted to resize the program window and $RESIZE:ON has allowed it. {{PageSyntax}} : IF '''_RESIZE''' THEN rx& = _RESIZEWIDTH: ry& = _RESIZEHEIGHT {{PageDescription}} * The function returns -1 if a program screen resize was attempted by the user. * After the function returns -1, _RESIZEWIDTH and _RESIZEHEIGHT can return the new requested dimensions in..."
  • 14:0414:04, 19 April 2022 diff hist +606 N RESIZECreated page with "{{DISPLAYTITLE:_RESIZE}} The _RESIZE statement sets resizing of the window ON or OFF and sets the method as _STRETCH or _SMOOTH. {{PageSyntax}} : _RESIZE [{ON|OFF}][, {_STRETCH|_SMOOTH}] {{Parameters}} * When resizing is turned OFF no method is listed. * When resizing is turned ON or left empty, a ''_STRETCH'' or ''_SMOOTH'' method can be used. {{PageDescription}} * Before this statement can be used, you must add the $RESIZE''':ON''' metacommand to y..."
  • 14:0214:02, 19 April 2022 diff hist +4,464 N $RESIZECreated page with "The $RESIZE metacommand determines if a program window can be resized by the user. {{PageSyntax}} : $RESIZE:{ON|OFF|STRETCH|SMOOTH} {{PageDescription}} * $RESIZE:ON is used to allow the program window to be resized by a program user. Otherwise it cannot be changed. * $RESIZE:OFF ('''default''') is used when the program's window size cannot be changed by the user. * $RESIZE:STRETCH the screen will be stretched to fit the new window size with a..."
  • 14:0114:01, 19 April 2022 diff hist +1,319 N RESETBITCreated page with "{{DISPLAYTITLE:_RESETBIT}} The _RESETBIT function is used to set a specified bit of a numerical value to 0 (OFF state). {{PageSyntax}} :{{Parameter|result}} = _RESETBIT({{Parameter|numericalVariable}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalVariable}} is the variable to set the bit of and can be of the following types: _BYTE, INTEGER, LONG, or _INTEGER64. * Integer values can be signed or _UNSIGNED. * {{Paramet..."
  • 14:0014:00, 19 April 2022 diff hist +1,755 N READBITCreated page with "{{DISPLAYTITLE:_READBIT}} The _READBIT function is used to check the state of a specified bit of a integer value. {{PageSyntax}} :{{Parameter|result}} = _READBIT({{Parameter|numericalVariable}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalVariable}} is the variable to read the state of a bit of and can be of the following types: _BYTE, INTEGER, LONG, or _INTEGER64. * Integer values can be signed or _UNSIGNED. * {{Pa..."
  • 13:5913:59, 19 April 2022 diff hist +740 N RED32Created page with "{{DISPLAYTITLE:_RED32}} The _RED32 function returns the red component intensity of a 32-bit image or surface color. {{PageSyntax}} : {{Parameter|red32color&}} = _RED32({{Parameter|rgbaColor&}}) {{PageDescription}} * {{Parameter|rgbaColor&}} is the 32-bit ''RGBA'' color value to retrieve the red component intensity value from. * ''RGBA'' color values are returned by the _PALETTECOLOR, POINT, _RGB, _RGB32, _RGBA or [..."
  • 13:5713:57, 19 April 2022 diff hist 0 REDNo edit summary current
  • 13:5613:56, 19 April 2022 diff hist +1,428 N REDCreated page with "{{DISPLAYTITLE:_RED}} The _RED function returns the palette index or the red component intensity of a 32-bit image color. {{PageSyntax}} : {{Parameter|redIntensity&}} = _RED({{Parameter|rgbaColorIndex&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * {{Parameter|rgbaColorIndex&}} is the ''RGBA'' color value or palette index of the color to retrieve the red component intensity from. * The LONG intensity value returned ranges from 0 (no intensity, not..."
  • 13:3113:31, 19 April 2022 diff hist +4 N Template:OutputEndCreated page with "</p>"
  • 13:3113:31, 19 April 2022 diff hist +177 N Template:OutputStartCreated page with "<p style="padding: 1em; line-height:100%; margin-left:5px; white-space: pre; font-family: Courier, monospace; background-color: black; color: lightgrey; word-wrap: break-word;">"
  • 00:0900:09, 19 April 2022 diff hist +603 N G2RCreated page with "{{DISPLAYTITLE:_G2R}} The _G2R function converts a '''gradient''' value into a '''radian''' value. {{PageSyntax}} : {{Parameter|result}} = _G2R({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Gradient into Radians. {{CodeStart}} INPUT "Give me an angle in Gradient ", D R = _G2R(D) PRINT "That angle in Radians is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Gradient 60 That angle in Radians i..."
  • 00:0900:09, 19 April 2022 diff hist +592 N G2DCreated page with "{{DISPLAYTITLE:_G2D}} The _G2D function converts a '''gradient''' value into a '''degree''' value. {{PageSyntax}} : {{Parameter|result}} = _G2D({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Gradients into Degree. {{CodeStart}} INPUT "Give me an angle in Gradients ", D R = _G2D(D) PRINT "That angle in Degrees is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Gradients 60 That angle in Degrees..."
  • 00:0800:08, 19 April 2022 diff hist +596 N R2GCreated page with "{{DISPLAYTITLE:_R2G}} The _R2G function converts a '''radian''' value into a '''gradient''' value. {{PageSyntax}} : {{Parameter|result!}} = _R2G({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Radian into Gradient. {{CodeStart}} INPUT "Give me an angle in Radians ", D R = _R2G(D) PRINT "That angle in Gradient is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Radians 0.5 That angle in Gradient..."
  • 00:0800:08, 19 April 2022 diff hist +598 N D2RCreated page with "{{DISPLAYTITLE:_D2R}} The _D2R function converts a '''degree''' value into a '''radian''' value. {{PageSyntax}} :: {{Parameter|result}} = _D2R({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Degrees into Radians. {{CodeStart}} INPUT "Give me an angle in Degrees ", D R = _D2R(D) PRINT "That angle in Radians is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Degrees 60 That angle in Radians is 1...."
  • 00:0700:07, 19 April 2022 diff hist +593 N D2GCreated page with "{{DISPLAYTITLE:_D2G}} The _D2G function converts a '''degree''' value into a '''gradient''' value. {{PageSyntax}} : {{Parameter|result}} = _D2G({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Degrees into Gradient. {{CodeStart}} INPUT "Give me an angle in Degrees ", D R = _D2G(D) PRINT "That angle in Gradient is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Degrees 60 That angle in Gradient i..."
  • 00:0100:01, 19 April 2022 diff hist +6,595 N PRINTCreated page with "The {{KW|PRINT}} statement prints numeric or string expressions to the program screen. Typing shortcut '''?''' will convert to PRINT. {{PageSyntax}} ::: '''PRINT''' [{{Parameter|expression}}] [{;|,] [''expression''...] {{Parameters}} * {{Parameter|expression}} is a numeric or string expression or list of expressions to be written to the screen. End quotes will not be displayed in strings. * The print statement can be followed by a semicolon to stop the print cur..."

18 April 2022

  • 23:5823:58, 18 April 2022 diff hist +590 N R2DCreated page with "{{DISPLAYTITLE:_R2D}} The _R2D function converts a '''radian''' value into a '''degree''' value. {{PageSyntax}} : {{Parameter|result!}} = _R2D({{Parameter|num}}) ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} ''Example:'' Coverting Radian into Degree. {{CodeStart}} INPUT "Give me an angle in Radians ", D R = _R2D(D) PRINT "That angle in Degrees is "; R {{CodeEnd}} {{OutputStart}} Give me an angle in Radians 0.5 That angle in Degrees is..."
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)