User contributions for SMcNeill

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽

16 May 2024

17 December 2023

26 October 2023

24 October 2023

23 September 2023

20 February 2023

17 January 2023

9 November 2022

7 November 2022

5 September 2022

3 September 2022

3 May 2022

1 May 2022

  • 06:2906:29, 1 May 2022 diff hist +929 N ExpressionCreated page with "A '''expression''' is a calculation used as a argument or assignment and can be a numerical or string expression. Expressions may include logical operators as well as mathematical operators and functions and are used in various forms in a program. '''Examples of different kind of expressions:''' ''Numerical expressions:'' ('''1000''' is the expression) {{CodeStart}} {{Cl|PRINT}} 1000 {{CodeEnd}} {{OutputStart}} 1000 {{OutputEnd}} ('''1 + 1''' is the express..."
  • 06:1306:13, 1 May 2022 diff hist +642 DIMNo edit summary
  • 06:1206:12, 1 May 2022 diff hist +1,728 N GlViewportCreated page with "'''_glViewport:''' set the viewport {{PageSyntax}} SUB _glViewport (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL height AS LONG) void '''_glViewport'''(GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei {{Parameter|width}}, GLsizei {{Parameter|height}}); ; x, y : Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). ; width, height : Specify the width and height of the viewport. When a GL context is fi..."
  • 06:1106:11, 1 May 2022 diff hist +5,897 N GlTexSubImage2DCreated page with "'''_glTexSubImage2D:''' specify a two-dimensional texture subimage {{PageSyntax}} SUB _glTexSubImage2D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL xoffset AS LONG, BYVAL yoffset AS LONG, BYVAL width AS LONG, BYVAL height AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glTexSubImage2D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|xoffset}}, GLint {{Parameter|yoffset}},..."
  • 06:1106:11, 1 May 2022 diff hist +5,044 N GlTexSubImage1DCreated page with "'''_glTexSubImage1D:''' specify a one-dimensional texture subimage {{PageSyntax}} SUB _glTexSubImage1D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL xoffset AS LONG, BYVAL width AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glTexSubImage1D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|xoffset}}, GLsizei {{Parameter|width}}, GLenum {{Parameter|format}}, GLenum {{Parame..."
  • 06:1006:10, 1 May 2022 diff hist +14,731 N GlTexImage2DCreated page with "'''_glTexImage2D:''' specify a two-dimensional texture image {{PageSyntax}} SUB _glTexImage2D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL internalformat AS LONG, BYVAL width AS LONG, BYVAL height AS LONG, BYVAL border AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glTexImage2D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|internalFormat}}, GLsizei {{Parameter|width}}..."
  • 06:1006:10, 1 May 2022 diff hist +11,697 N GlTexImage1DCreated page with "'''_glTexImage1D:''' specify a one-dimensional texture image {{PageSyntax}} SUB _glTexImage1D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL internalformat AS LONG, BYVAL width AS LONG, BYVAL border AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glTexImage1D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|internalFormat}}, GLsizei {{Parameter|width}}, GLint {{Parameter|bo..."
  • 06:0906:09, 1 May 2022 diff hist +5,576 N GlStencilOpCreated page with "'''_glStencilOp:''' set front and back stencil test actions {{PageSyntax}} SUB _glStencilOp (BYVAL fail AS _UNSIGNED LONG, BYVAL zfail AS _UNSIGNED LONG, BYVAL zpass AS _UNSIGNED LONG) void '''_glStencilOp'''(GLenum {{Parameter|sfail}}, GLenum {{Parameter|dpfail}}, GLenum {{Parameter|dppass}}); ; sfail : Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: {{KW|_GL_KEEP}}, {{KW|_GL_ZERO}}, {{KW|_GL_REPLACE}}, {{KW|_GL_..."
  • 06:0906:09, 1 May 2022 diff hist +5,255 N GlStencilFuncCreated page with "'''_glStencilFunc:''' set front and back function and reference value for stencil testing {{PageSyntax}} SUB _glStencilFunc (BYVAL func AS _UNSIGNED LONG, BYVAL ref AS LONG, BYVAL mask AS _UNSIGNED LONG) void '''_glStencilFunc'''(GLenum {{Parameter|func}}, GLint {{Parameter|ref}}, GLuint {{Parameter|mask}}); ; func : Specifies the test function. Eight symbolic constants are valid: {{KW|_GL_NEVER}}, {{KW|_GL_LESS}}, {{KW|_GL_LEQUAL}}, {{KW|_GL_GREATER}}, {{KW|_GL..."
  • 06:0806:08, 1 May 2022 diff hist +347 N GLRENDERCreated page with "{{DISPLAYTITLE:_GLRENDER}} {{PageSyntax}} :'''_GLRENDER '''''mode'' {{PageParameters}} Mode can be: * _BEHIND - renders OpenGL context behind the software rendering * _ONTOP - renders OpenGL context on the top of the software rendering [default] * _ONLY - renders OpenGL context only ''See also:'' * Hardware images {{PageNavigation}}"
  • 06:0806:08, 1 May 2022 diff hist +10,368 N GlReadPixelsCreated page with "'''_glReadPixels:''' read a block of pixels from the frame buffer {{PageSyntax}} SUB _glReadPixels (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL height AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glReadPixels'''(GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei {{Parameter|width}}, GLsizei {{Parameter|height}}, GLenum {{Parameter|format}}, GLenum {{Parameter|type}}, GLvoid * {{Parameter|dat..."
  • 06:0706:07, 1 May 2022 diff hist +2,838 N GlReadBufferCreated page with "'''_glReadBuffer:''' select a color buffer source for pixel read operations from the current read framebuffer. {{PageSyntax}} SUB _glReadBuffer (BYVAL mode AS _UNSIGNED LONG) void '''_glReadBuffer'''(GLenum {{Parameter|mode}}); ; mode : Specifies a color buffer. Accepted values are {{KW|_GL_FRONT_LEFT}}, {{KW|_GL_FRONT_RIGHT}}, {{KW|_GL_BACK_LEFT}}, {{KW|_GL_BACK_RIGHT}}, {{KW|_GL_FRONT}}, {{KW|_GL_BACK}}, {{KW|_GL_LEFT}}, {{KW|_GL_RIGHT}}, and the constants {{K..."
  • 06:0706:07, 1 May 2022 diff hist +1,847 N GlPolygonOffsetCreated page with "'''_glPolygonOffset:''' set the scale and units used to calculate depth values {{PageSyntax}} SUB _glPolygonOffset (BYVAL factor AS SINGLE, BYVAL units AS SINGLE) void '''_glPolygonOffset'''(GLfloat {{Parameter|factor}}, GLfloat {{Parameter|units}}); ; factor : Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. ; units : Is multiplied by an implementation-specific value to create a constant depth off..."
  • 06:0606:06, 1 May 2022 diff hist +2,648 N GlPolygonModeCreated page with "'''_glPolygonMode:''' select a polygon rasterization mode {{PageSyntax}} SUB _glPolygonMode (BYVAL face AS _UNSIGNED LONG, BYVAL mode AS _UNSIGNED LONG) void '''_glPolygonMode'''(GLenum {{Parameter|face}}, GLenum {{Parameter|mode}}); ; face : Specifies the polygons that {{Parameter|mode}} applies to. Must be {{KW|_GL_FRONT_AND_BACK}} for front- and back-facing polygons. ; mode : Specifies how polygons will be rasterized. Accepted values are {{KW|_GL_POINT}}, {{K..."
  • 06:0506:05, 1 May 2022 diff hist +1,646 N GlPointSizeCreated page with "'''_glPointSize:''' specify the diameter of rasterized points {{PageSyntax}} SUB _glPointSize (BYVAL size AS SINGLE) void '''_glPointSize'''(GLfloat {{Parameter|size}}); ; size : Specifies the diameter of rasterized points. The initial value is 1. {{PageDescription}} '''_glPointSize''' specifies the rasterized diameter of points. If point size mode is disabled (see {{KW|_glEnable}} with parameter {{KW|_GL_PROGRAM_POINT_SIZE}}), this value will be used to rast..."
  • 06:0406:04, 1 May 2022 diff hist +2,960 N GlLogicOpCreated page with "'''_glLogicOp:''' specify a logical pixel operation for rendering {{PageSyntax}} SUB _glLogicOp (BYVAL opcode AS _UNSIGNED LONG) void '''_glLogicOp'''(GLenum {{Parameter|opcode}}); ; opcode : Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: {{KW|_GL_CLEAR}}, {{KW|_GL_SET}}, {{KW|_GL_COPY}}, {{KW|_GL_COPY_INVERTED}}, {{KW|_GL_NOOP}}, {{KW|_GL_INVERT}}, {{KW|_GL_AND}}, {{KW|_GL_NAND}}, {{KW|_GL_OR}}, {{KW|_GL_NOR}..."
  • 06:0406:04, 1 May 2022 diff hist +3,524 N GlLineWidthCreated page with "'''_glLineWidth:''' specify the width of rasterized lines {{PageSyntax}} SUB _glLineWidth (BYVAL width AS SINGLE) void '''_glLineWidth'''(GLfloat {{Parameter|width}}); ; width : Specifies the width of rasterized lines. The initial value is 1. {{PageDescription}} '''_glLineWidth''' specifies the rasterized width of both aliased and antialiased lines. Using a line width other than 1 has different effects, depending on whether line antialiasing is enabled. To en..."
  • 06:0306:03, 1 May 2022 diff hist +1,039 N GlIsTextureCreated page with "'''_glIsTexture:''' determine if a name corresponds to a texture {{PageSyntax}} FUNCTION _glIsTexture~%% (BYVAL texture AS _UNSIGNED LONG) GLboolean '''_glIsTexture'''(GLuint {{Parameter|texture}}); ; texture : Specifies a value that may be the name of a texture. {{PageDescription}} '''_glIsTexture''' returns {{KW|_GL_TRUE}} if {{Parameter|texture}} is currently the name of a texture. If {{Parameter|texture}} is zero, or is a non-zero value that is not curren..."
  • 06:0306:03, 1 May 2022 diff hist +3,307 N GlIsEnabledCreated page with "'''_glIsEnabled, glIsEnabledi:''' test whether a capability is enabled {{PageSyntax}} FUNCTION _glIsEnabled~%% (BYVAL cap AS _UNSIGNED LONG) GLboolean '''_glIsEnabled'''(GLenum {{Parameter|cap}}); GLboolean '''_glIsEnabledi'''(GLenum {{Parameter|cap}}, GLuint {{Parameter|index}}); ; cap : Specifies a symbolic constant indicating a GL capability. ; index : Specifies the index of the capability. {{PageDescription}} '''_glIsEnabled''' returns {{KW|_GL_TRUE}} i..."
  • 06:0206:02, 1 May 2022 diff hist +3,128 N GlHintCreated page with "'''_glHint:''' specify implementation-specific hints {{PageSyntax}} SUB _glHint (BYVAL target AS _UNSIGNED LONG, BYVAL mode AS _UNSIGNED LONG) void '''_glHint'''(GLenum {{Parameter|target}}, GLenum {{Parameter|mode}}); ; target : Specifies a symbolic constant indicating the behavior to be controlled. {{KW|_GL_LINE_SMOOTH_HINT}}, {{KW|_GL_POLYGON_SMOOTH_HINT}}, {{KW|_GL_TEXTURE_COMPRESSION_HINT}}, and {{KW|_GL_FRAGMENT_SHADER_DERIVATIVE_HINT}} are accepted. ; mod..."
  • 06:0206:02, 1 May 2022 diff hist +7,906 N GlGetTexImageCreated page with "'''_glGetTexImage:''' return a texture image {{PageSyntax}} SUB _glGetTexImage (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void '''_glGetTexImage'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLenum {{Parameter|format}}, GLenum {{Parameter|type}}, GLvoid * {{Parameter|img}}); ; target : Specifies which texture is to be obtained. {{KW|_GL_TEXTURE_1D}}, {{KW|_GL..."
  • 06:0106:01, 1 May 2022 diff hist +3,250 N GlGetStringCreated page with "'''_glGetString:''' return a string describing the current GL connection {{PageSyntax}} FUNCTION _glGetString&& (BYVAL name AS _UNSIGNED LONG) const GLubyte* '''_glGetString'''(GLenum {{Parameter|name}}); const GLubyte* '''_glGetStringi'''(GLenum {{Parameter|name}}, GLuint {{Parameter|index}}); ; name : Specifies a symbolic constant, one of {{KW|_GL_VENDOR}}, {{KW|_GL_RENDERER}}, {{KW|_GL_VERSION}}, or {{KW|_GL_SHADING_LANGUAGE_VERSION}}. Additionally, '''_glG..."
  • 06:0106:01, 1 May 2022 diff hist +3,120 N GlGetErrorCreated page with "'''_glGetError:''' return error information {{PageSyntax}} FUNCTION _glGetError~& GLenum '''_glGetError'''({{Parameter|void}}); {{PageDescription}} '''_glGetError''' returns the value of the error flag. Each detectable error is assigned a numeric code and symbolic name. When an error occurs, the error flag is set to the appropriate error code value. No other errors are recorded until '''_glGetError''' is called, the error code is returned, and the flag is rese..."
  • 06:0006:00, 1 May 2022 diff hist +1,430 N GlGenTexturesCreated page with "'''_glGenTextures:''' generate texture names {{PageSyntax}} SUB _glGenTextures (BYVAL n AS LONG, textures AS _UNSIGNED LONG) void '''_glGenTextures'''(GLsizei {{Parameter|n}}, GLuint * {{Parameter|textures}}); ; n : Specifies the number of texture names to be generated. ; textures : Specifies an array in which the generated texture names are stored. {{PageDescription}} '''_glGenTextures''' returns {{Parameter|n}} texture names in {{Parameter|textures}}. There..."
  • 06:0006:00, 1 May 2022 diff hist +2,007 N GlFrontFaceCreated page with "'''_glFrontFace:''' define front- and back-facing polygons {{PageSyntax}} SUB _glFrontFace (BYVAL mode AS _UNSIGNED LONG) void '''_glFrontFace'''(GLenum {{Parameter|mode}}); ; mode : Specifies the orientation of front-facing polygons. {{KW|_GL_CW}} and {{KW|_GL_CCW}} are accepted. The initial value is {{KW|_GL_CCW}}. {{PageDescription}} In a scene composed entirely of opaque closed surfaces, back-facing polygons are never visible. Eliminating these invisible..."
  • 06:0006:00, 1 May 2022 diff hist +1,297 N GlFlushCreated page with "'''_glFlush:''' force execution of GL commands in finite time {{PageSyntax}} SUB _glFlush void '''_glFlush'''({{Parameter|void}}); {{PageDescription}} Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator itself. '''_glFlush''' empties all of these buffers, causing all issued commands to be executed as quickly as they are accepted by the actual rendering engine. Though this execution..."
  • 05:5905:59, 1 May 2022 diff hist +792 N GlFinishCreated page with "'''_glFinish:''' block until all GL execution is complete {{PageSyntax}} SUB _glFinish void '''_glFinish'''({{Parameter|void}}); {{PageDescription}} '''_glFinish''' does not return until the effects of all previously called GL commands are complete. Such effects include all changes to GL state, all changes to connection state, and all changes to the frame buffer contents. {{PageNotes}} '''_glFinish''' requires a round trip to the server. {{PageSeeAlso}}..."

30 April 2022

  • 18:5318:53, 30 April 2022 diff hist +10,301 N GlEnableCreated page with "'''_glEnable:''' enable or disable server-side GL capabilities {{PageSyntax}} SUB _glEnable (BYVAL cap AS _UNSIGNED LONG) void '''_glEnable'''(GLenum {{Parameter|cap}}); SUB _glDisable (BYVAL cap AS _UNSIGNED LONG) void '''_glDisable'''(GLenum {{Parameter|cap}}); ; cap : Specifies a symbolic constant indicating a GL capability. {{PageSyntax}} | name = glEnablei, glDisablei | core = 3.0 }} void '''_glEnablei'''(GLenum {{Parameter|cap}}, GLuint {{Param..."
  • 18:5218:52, 30 April 2022 diff hist +3,321 N GlDrawElementsCreated page with "'''_glDrawElements:''' render primitives from array data {{PageSyntax}} : SUB _glDrawElements (BYVAL mode AS _UNSIGNED LONG, BYVAL count AS LONG, BYVAL type AS _UNSIGNED LONG, indices AS _OFFSET) : void '''_glDrawElements'''(GLenum {{Parameter|mode}}, GLsizei {{Parameter|count}}, GLenum {{Parameter|type}}, const GLvoid * {{Parameter|indices}}); ; mode : Specifies what kind of primitives to render. Symbolic constants {{KW|_GL_POINTS}}, {{KW|_GL_LINE_STRIP}}, {{KW|_..."
  • 18:5218:52, 30 April 2022 diff hist +2,689 N GlDrawArraysCreated page with "'''_glDrawArrays:''' render primitives from array data {{PageSyntax}} :: SUB _glDrawArrays (BYVAL mode AS _UNSIGNED LONG, BYVAL first AS LONG, BYVAL count AS LONG) :: void '''_glDrawArrays'''(GLenum {{Parameter|mode}}, GLint {{Parameter|first}}, GLsizei {{Parameter|count}}); ; mode : Specifies what kind of primitives to render. Symbolic constants {{KW|_GL_POINTS}}, {{KW|_GL_LINE_STRIP}}, {{KW|_GL_LINE_LOOP}}, {{KW|_GL_LINES}}, {{KW|_GL_LINE_STRIP_ADJACENCY}}, {{KW..."
  • 18:5118:51, 30 April 2022 diff hist +1,925 N GlDepthRangeCreated page with "'''_glDepthRange:''' specify mapping of depth values from normalized device coordinates to window coordinates {{PageSyntax}} :: SUB _glDepthRange (BYVAL zNear AS DOUBLE, BYVAL zFar AS DOUBLE) :: void '''_glDepthRange'''(GLdouble {{Parameter|nearVal}}, GLdouble {{Parameter|farVal}}); :: void '''_glDepthRangef'''(GLfloat {{Parameter|nearVal}}, GLfloat {{Parameter|farVal}}); ; nearVal : Specifies the mapping of the near clipping plane to window coordinates. The init..."
  • 18:5018:50, 30 April 2022 diff hist +2,387 N GlDepthFuncCreated page with "'''_glDepthFunc:''' specify the value used for depth buffer comparisons {{PageSyntax}} :: SUB _glDepthFunc (BYVAL func AS _UNSIGNED LONG) :: void '''_glDepthFunc'''(GLenum {{Parameter|func}}); ; func : Specifies the depth comparison function. Symbolic constants {{KW|_GL_NEVER}}, {{KW|_GL_LESS}}, {{KW|_GL_EQUAL}}, {{KW|_GL_LEQUAL}}, {{KW|_GL_GREATER}}, {{KW|_GL_NOTEQUAL}}, {{KW|_GL_GEQUAL}}, and {{KW|_GL_ALWAYS}} are accepted. The initial value is {{KW|_GL_LESS}}...."
  • 18:5018:50, 30 April 2022 diff hist +1,070 N GlDeleteTexturesCreated page with "'''_glDeleteTextures:''' delete named textures {{PageSyntax}} : SUB _glDeleteTextures (BYVAL n AS LONG, textures AS _UNSIGNED LONG) : void '''_glDeleteTextures'''(GLsizei {{Parameter|n}}, const GLuint * {{Parameter|textures}}); ; n : Specifies the number of textures to be deleted. ; textures : Specifies an array of textures to be deleted. {{PageDescription}} '''_glDeleteTextures''' deletes {{Parameter|n}} textures named by the elements of the array {{Parameter..."
  • 18:4918:49, 30 April 2022 diff hist +1,450 N GlCullFaceCreated page with "'''_glCullFace:''' specify whether front- or back-facing facets can be culled {{PageSyntax}} ::SUB '''_glCullFace''' (BYVAL mode AS _UNSIGNED LONG) :: void '''_glCullFace'''(GLenum {{Parameter|mode}}); ; mode : Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants {{KW|_GL_FRONT}}, {{KW|_GL_BACK}}, and {{KW|_GL_FRONT_AND_BACK}} are accepted. The initial value is {{KW|_GL_BACK}}. {{PageDescription}} '''_glCullFace''' specifi..."
  • 18:4918:49, 30 April 2022 diff hist +4,669 N GlCopyTexSubImage2DCreated page with "'''_glCopyTexSubImage2D:''' copy a two-dimensional texture subimage {{PageSyntax}} : SUB _glCopyTexSubImage2D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL xoffset AS LONG, BYVAL yoffset AS LONG, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL height AS LONG) : void '''_glCopyTexSubImage2D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|xoffset}}, GLint {{Parameter|yoffset}}, GLint {{Parameter|x}}, GLint {{Par..."
  • 18:4818:48, 30 April 2022 diff hist +3,264 N GlCopyTexSubImage1DCreated page with "'''_glCopyTexSubImage1D:''' copy a one-dimensional texture subimage {{PageSyntax}} : SUB _glCopyTexSubImage1D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL xoffset AS LONG, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG) : void '''_glCopyTexSubImage1D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLint {{Parameter|xoffset}}, GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei {{Parameter|width}}); ; target : Specifies the targe..."
  • 18:4818:48, 30 April 2022 diff hist +5,020 N GlCopyTexImage2DCreated page with "'''_glCopyTexImage2D:''' copy pixels into a 2D texture image {{PageSyntax}} : SUB _glCopyTexImage2D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL internalFormat AS _UNSIGNED LONG, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL height AS LONG, BYVAL border AS LONG) : void '''_glCopyTexImage2D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLenum {{Parameter|internalformat}}, GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei..."
  • 18:4718:47, 30 April 2022 diff hist +4,440 N GlCopyTexImage1DCreated page with "'''_glCopyTexImage1D:''' copy pixels into a 1D texture image {{PageSyntax}} : SUB _glCopyTexImage1D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL internalFormat AS _UNSIGNED LONG, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL border AS LONG) : void '''_glCopyTexImage1D'''(GLenum {{Parameter|target}}, GLint {{Parameter|level}}, GLenum {{Parameter|internalformat}}, GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei {{Parameter|width}},..."
  • 06:1106:11, 30 April 2022 diff hist +2,099 N GlScissorCreated page with "'''_glScissor:''' define the scissor box {{PageSyntax}} SUB _glScissor (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL width AS LONG, BYVAL height AS LONG) void '''_glScissor'''(GLint {{Parameter|x}}, GLint {{Parameter|y}}, GLsizei {{Parameter|width}}, GLsizei {{Parameter|height}}); ; x, y : Specify the lower left corner of the scissor box. Initially (0, 0). ; width, height : Specify the width and height of the scissor box. When a GL context is first attached to a wind..."
  • 06:1106:11, 30 April 2022 diff hist +3,175 N GlDrawBufferCreated page with "'''_glDrawBuffer:''' specify which color buffers are to be drawn into {{PageSyntax}} :: SUB _glDrawBuffer (BYVAL mode AS _UNSIGNED LONG) :: void '''_glDrawBuffer'''(GLenum {{Parameter|mode}}); ; mode : Specifies up to four color buffers to be drawn into. Symbolic constants {{KW|_GL_NONE}}, {{KW|_GL_FRONT_LEFT}}, {{KW|_GL_FRONT_RIGHT}}, {{KW|_GL_BACK_LEFT}}, {{KW|_GL_BACK_RIGHT}}, {{KW|_GL_FRONT}}, {{KW|_GL_BACK}}, {{KW|_GL_LEFT}}, {{KW|_GL_RIGHT}}, and {{KW|_GL_FR..."
  • 06:1006:10, 30 April 2022 diff hist +1,921 N GlStencilMaskCreated page with "'''_glStencilMask:''' control the front and back writing of individual bits in the stencil planes {{PageSyntax}} SUB _glStencilMask (BYVAL mask AS _UNSIGNED LONG) void '''_glStencilMask'''(GLuint {{Parameter|mask}}); ; mask : Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. {{PageDescription}} '''_glStencilMask''' controls the writing of individual bits in the stencil planes. The leas..."
  • 06:0906:09, 30 April 2022 diff hist +1,188 N GlDepthMaskCreated page with "'''_glDepthMask:''' enable or disable writing into the depth buffer {{PageSyntax}} :: SUB _glDepthMask (BYVAL flag AS _UNSIGNED _BYTE) :: void '''_glDepthMask'''(GLboolean {{Parameter|flag}}); ; flag : Specifies whether the depth buffer is enabled for writing. If {{Parameter|flag}} is {{KW|_GL_FALSE}}, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. {{PageDescription}} '''_glDepthMask''' specifies whether..."
  • 06:0906:09, 30 April 2022 diff hist +1,840 N GlColorMaskCreated page with "'''_glColorMask, glColorMaski:''' enable and disable writing of frame buffer color components {{PageSyntax}} :: SUB _glColorMask (BYVAL red AS _UNSIGNED _BYTE, BYVAL green AS _UNSIGNED _BYTE, BYVAL blue AS _UNSIGNED _BYTE, BYVAL alpha AS _UNSIGNED _BYTE) :: void '''_glColorMask'''(GLboolean {{Parameter|red}}, GLboolean {{Parameter|green}}, GLboolean {{Parameter|blue}}, GLboolean {{Parameter|alpha}}); :: void '''_glColorMaski'''(GLuint {{Parameter|buf}}, GLboolean {..."
  • 06:0906:09, 30 April 2022 diff hist +712 N GlClearStencilCreated page with "'''_glClearStencil:''' specify the clear value for the stencil buffer {{PageSyntax}} :: SUB _glClearStencil (BYVAL s AS LONG) :: void '''_glClearStencil'''(GLint {{Parameter|s}}); ; s : Specifies the index used when the stencil buffer is cleared. The initial value is 0. {{PageDescription}} '''_glClearStencil''' specifies the index used by {{KW|_glClear}} to clear the stencil buffer. {{Parameter|s}} is masked with 2<sup>m</sup> - 1, where m is the nu..."
  • 06:0806:08, 30 April 2022 diff hist +906 N GlClearDepthCreated page with "'''_glClearDepth:''' specify the clear value for the depth buffer {{PageSyntax}} :: SUB _glClearDepth (BYVAL depth AS DOUBLE) :: void '''_glClearDepth'''(GLdouble {{Parameter|depth}}); :: void '''_glClearDepthf'''(GLfloat {{Parameter|depth}}); ; depth : Specifies the depth value used when the depth buffer is cleared. The initial value is 1. {{PageDescription}} '''_glClearDepth''' specifies the depth value used by {{KW|_glClear}} to clear the depth buffer. Values s..."
  • 06:0806:08, 30 April 2022 diff hist +985 N GlClearColorCreated page with "'''_glClearColor:''' specify clear values for the color buffers {{PageSyntax}} :: SUB '''_glClearColor''' (BYVAL red AS SINGLE, BYVAL green AS SINGLE, BYVAL blue AS SINGLE, BYVAL alpha AS SINGLE) :: void '''_glClearColor'''(GLfloat {{Parameter|red}}, GLfloat {{Parameter|green}}, GLfloat {{Parameter|blue}}, GLfloat {{Parameter|alpha}}); ; red, green, blue, alpha : Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial valu..."
  • 06:0706:07, 30 April 2022 diff hist +1,847 N GLCreated page with "{{DISPLAYTITLE:_GL}} In order to use OpenGL drawing commands, you must do so from inside a SUB procedure called '''_GL''', which enables the commands to be rendered. {{PageSyntax}} :SUB _GL :: ''REM Your OpenGL code here : END SUB {{PageDescription}} * OpenGL commands are valid outside of '''SUB _GL''', as long as the sub procedure exists in your code. * Attempting to use OpenGL commands without having '''SUB _GL''' in a program will result in a '''Syn..."
  • 06:0606:06, 30 April 2022 diff hist +2,101 N GlClearCreated page with "'''_glClear:''' clear buffers to preset values {{PageSyntax}} :: SUB _glClear (BYVAL mask AS _UNSIGNED LONG) :: void '''_glClear'''(GLbitfield {{Parameter|mask}}); {{PageParameters}} * ''mask'' that indicate the buffer OR buffers to be cleared. The three masks are _GL_COLOR_BUFFER_BIT, _GL_DEPTH_BUFFER_BIT, and _GL_STENCIL_BUFFER_BIT. {{PageDescription}} * _glClear sets the bitplane area of the window to values previously sele..."
  • 06:0506:05, 30 April 2022 diff hist +4,931 N GlBindTextureCreated page with "'''_glBindTexture:''' bind a named texture to a texturing target {{PageSyntax}} :: SUB '''_glBindTexture''' (BYVAL target AS _UNSIGNED LONG, BYVAL texture AS _UNSIGNED LONG) :: void '''_glBindTexture'''(GLenum {{Parameter|target}}, GLuint {{Parameter|texture}}); ; target : Specifies the target to which the texture is bound. Must be either {{KW|_GL_TEXTURE_1D}}, {{KW|_GL_TEXTURE_2D}}, {{KW|_GL_TEXTURE_3D}}, or {{KW|_GL_TEXTURE_1D_ARRAY}}, {{KW|_GL_TEXTURE_2D_ARRAY}},..."

28 April 2022

27 April 2022

22 April 2022

21 April 2022

  • 00:4100:41, 21 April 2022 diff hist +25 N ISRedirected page to SELECT CASE current Tags: New redirect visualeditor
  • 00:3000:30, 21 April 2022 diff hist +9,315 N ScancodesCreated page with "'''This page is maintained for historic purposes. The functionality of the code below can now be achieved through the _KEYDOWN function.''' ---- '''Scancodes''' are the return values of keyboard input that can be read using INP to find key presses and '''releases''', unlike the ASCII codes returned using INKEY$. {{PageSyntax}} : {{Parameter|scanCode%}} = INP(&H60) {{PageDescription}} * Used to find '''[Ctrl], [Alt], [Shift], [Caps Lock], [Scroll..."
  • 00:2900:29, 21 April 2022 diff hist +1,498 N ParameterCreated page with "Optional '''parameters''' are values passed to SUB and FUNCTION procedures. They are always enclosed in parenthesis inside the procedures. {{PageSyntax}} ::: SUB SubName['''(''parameter''''' [{{KW|AS}} Type][''', ...''']''')'''] ::: FUNCTION FunctionName['''(''parameter''''' [{{KW|AS}} Type][''', ...''']''')'''] ::: CALL SubName['''(''parameter'''''[''', ...''']''')'''] ::: SubName ['''''parameter'''''][''', ......"
  • 00:2800:28, 21 April 2022 diff hist +27,472 N DEF SEG = 0Created page with "The following '''DOS BIOS''' information can be used on Windows 9x machines. Not necessarily XP or NT! Each routine includes the hexadecimal and decimal registers. :'''NOTE: Few of these addresses are currenly accessable in QB64! Some may never be due to OS changes.''' ::::::'''DEF SEG = 0 LOW MEMORY PORT ADDRESSES''' ::::::===================================== :::::'''PORT # | FUNCTION, DESCRIPTION OR COMMENTS FOR USE''' :::::======================================..." Tag: visualeditor-switched
  • 00:0400:04, 21 April 2022 diff hist +28,881 N SQL ClientCreated page with "'''MySQL''' is a database manager that is widely used on the internet with languages such as PHP. This is a DECLARE LIBRARY to allow access to MySQL databases. <center>'''IMPORTANT'''</center> :::::::* 1) Make sure you are running QB64 V0.942 or higher :::::::* 2) Download 'mysql.dll' and place it in your qb64 folder (not provided) :::::::* 3) Create 'mysql_helper.h' in your QB64 folder (see below) :::::::* 4) Run & enjoy browsing our sample database as a member with re..."
  • 00:0400:04, 21 April 2022 diff hist +16,152 N Windows Registry AccessCreated page with "The following procedure demonstrates how Registry information can be altered by disabling and re-enabling the Autorun/Autoplay for the current user. It then reads the Registry to list some of the programs that auto start for all users. {{small|Code courtesy of Michael Calkins}} <center>'''{{text|WARNING! Use care when editing or altering Registry settings! YOU will be responsible for any damages incurred!|red}}'''</center> {{CodeStart}} '' '' ' winreg.h {{Cl|CONST}}..."
  • 00:0300:03, 21 April 2022 diff hist +9,708 N SFML LibraryCreated page with "'''SFML''' is a sound library that allows users to record and play sounds. <center>[http://dl.dropbox.com/u/8822351/SFML.rar SFML.RAR Download(Includes Library header file)]</center> {{TextStart}} '' '' //SFML_Wrapper02.h for QB64 version.02 - By John Onyon a.k.a Unseen Machine <nowiki> #include <SFML/Graphics.hpp> #include <SFML/Window.hpp> #include <SFML/Audio.hpp> #include <SFML/System.hpp> </nowiki> sf::RenderWindow App; sf::Color BackgroundColor = sf::Color(0,0,..."
  • 00:0300:03, 21 April 2022 diff hist +2,814 N PEEK and POKE LibraryCreated page with "This header allows you to peek and poke bytes, words, and dwords in QB64. The functions seem to work okay when used with signed variables also. For example, I am able to assign the return of peekw~% to an INTEGER without problem. Regards, Michael Calkins Create ''PeekPoke.h'' text file in the QB64 folder: {{TextStart}} /* peek and poke for bytes, words, and dwords in qb64 public domain, sept 2011, michael calkins http://www.network54.com/Forum/648955/message/131595..."
  • 00:0200:02, 21 April 2022 diff hist +349 N Less Than Or EqualCreated page with "The '''<=''' condition symbol denotes that a value must be less than or equal to another value for the condition to be True. ''Example usage:'' IF x <= 320 THEN PRINT "Left or center of screen" ''See also:'' * = * <> * >= * Relational Operations {{PageNavigation}}"
  • 00:0100:01, 21 April 2022 diff hist +343 N Greater Than Or EqualCreated page with "The '''>=''' condition symbol denotes that a value must be greater than or equal to another value for the condition to be True. ''Example usage:'' IF x > 320 THEN PRINT "Right or center of screen" ''See also:'' * = * <> * <= * Relational Operations {{PageNavigation}}"
  • 00:0100:01, 21 April 2022 diff hist +554 N Less ThanCreated page with "The '''<''' condition symbol denotes that a value must be less than another value for the condition to be True. ''Example usage:'' IF x < 320 THEN PRINT "Left of screen" * Statements will evaluate as True or -1 when the first value is less or False or 0 when the first value is equal or greater. * More than one < symbol in a numerical statement will create a Boolean evaluation of the ensuing numerical value. ''See also:'' * = * Not_E..."
  • 00:0100:01, 21 April 2022 diff hist +558 N Greater ThanCreated page with "The '''>''' condition symbol denotes that a value must be greater than another value for the condition to be True. ''Example usage:'' IF x > 320 THEN PRINT "Right of screen" * Statements will evaluate as True or -1 when the first value is greater or False or 0 when equal or the first value is less. * More than one > symbol in a numerical statement will create a Boolean evaluation of the ensuing numerical value. ''See also:'' * = *..."
  • 00:0000:00, 21 April 2022 diff hist +533 N Not EqualCreated page with "The '''<>''' condition symbol denotes that a value must not equal another value for the condition to be True. ''Example usage:'' IF x <> 320 THEN PRINT "Not in center of screen" * Statements will evaluate as True or -1 when two values are not equal or False or 0 when equal. * More than one <> symbol in a numerical statement will create a Boolean evaluation of the ensuing numerical pairs. ''See also:'' * = * > * Less..."

20 April 2022

  • 23:4723:47, 20 April 2022 diff hist +1,224 N EqualCreated page with " View source for Equal ← Equal Jump to navigationJump to search You do not have permission to edit this page, for the following reason: The action you have requested is limited to users in the group: Users. You can view and copy the source of this page. The '''=''' condition symbol denotes that a value must equal another value for the condition to be True. ''Example usage:'' IF x = 320 THEN PRINT "Center of screen" * Statements will evaluate as True or -1 w..."
  • 23:4623:46, 20 April 2022 diff hist +1,735 N ^Created page with "The '''^''' operation raises a numerical value to an exponential value expressing how many times the value is multiplied by itself. {{PageSyntax}} ::'' return_value = number '''^''' {whole_exponent|(fractional_exponent)} {{PageDescription}} * The number value can be any type literal or variable numerical value. * Exponents can be any positive or negative integer or fractional numerical value inside of parenthesis brackets. * If the exponent is zero, the value return..."
  • 23:4623:46, 20 April 2022 diff hist +1,281 N \Created page with "The '''\''' mathematical operator performs INTEGER division on a numerical value. {{PageSyntax}} ::: return_value = number '''\''' divisor {{PageDescription}} * Number value can be any literal or variable numerical type. * '''Divisor (second value) must not be a value of 0 to .5'''. This will create a "Division by zero" error! due to CINT rounding. * Return values will be INTEGER or LONG value types only. * Rounding is done to the..."
  • 23:4423:44, 20 April 2022 diff hist +1,061 N /Created page with "The '''/''' mathematical operator performs decimal point division on a numerical value. {{PageSyntax}} ::: return_value = number '''/''' divisor {{PageDescription}} * Number value can be any literal or variable numerical type. * '''Divisor (second value) must not be a value of 0 to .5'''. This will create a "Division by zero" error! due to CINT rounding. * Return values can be any literal or variable numerical type, but SINGLE or DOUBLE..."
  • 23:4423:44, 20 April 2022 diff hist +648 N *Created page with "The '''*''' mathematical operator performs the multiplication of two values. ''Syntax:'' return_value = number1 * number2 {{PageDescription}} * Multiplication can use any two literal or variable numerical type values. * Multiplication of two negative numbers returns a positive result. One negative number will always return a negative value. * Return values may exceed certain numerical variable type limits creating an "Overflow" error. * Division and..."
  • 21:5621:56, 20 April 2022 diff hist +60 NegationNo edit summary
  • 21:5421:54, 20 April 2022 diff hist +319 N NegationCreated page with "'Negation is the process of changing the sign of a positive number to negative. Usage: number% = -number% Negation can be performed by adding a negative (- minus) sign to a number or by multiplying or dividing a number by any negative value. If a negative value is negated, the value of the number becomes positive."
  • 21:5321:53, 20 April 2022 diff hist +704 N -Created page with "The '''-''' mathematical operator performs subtraction on two numerical values or negates a single value. ''Syntax:'' return_value = number1 - number2 {{PageDescription}} * Numbers used can be any literal or variable numerical value type. * Subtracting a negative value will actually perform addition with the other value. * Subtracting a negative or negated value will make the return value more positive. * Addition and subtraction are th..."
  • 21:5121:51, 20 April 2022 diff hist +4,352 N MODCreated page with "The MOD operator gives the remainder after division of one number by another (sometimes called modulus). {{PageSyntax}} : {{Parameter|remainder}} = {{Parameter|numerator}} MOD {{Parameter|divisor}} {{Parameters}} * Returns the integer division remainder as a whole INTEGER, LONG or _INTEGER64 value. * {{Parameter|numerator}} is the INTEGER value to divide. * {{Parameter|divisor}} is the INTEGER value to divide by. {{PageDescription}} * F..."
  • 21:5121:51, 20 April 2022 diff hist +978 N MKDIRCreated page with "The MKDIR statement creates a new folder ('''dir'''ectory) at a specified path. {{PageSyntax}} : MKDIR pathSpec$ {{PageDescription}} * The path specification (pathSpec$) is a literal or variable STRING expression that also specifies the new folder's name. * If no path is given the directory will become a sub-directory of the present directory where the program is currently running. * '''QB64''' can use both long or short path and file names with spaces wh..."
  • 21:5021:50, 20 April 2022 diff hist +4,040 N MID$Created page with "The MID$ function returns a portion of a string. {{PageSyntax}} : {{Parameter|portion$}} = MID$({{Parameter|stringValue$}}, {{Parameter|startPosition%}}[, {{Parameter|bytes%}}]) {{Parameters}} * {{Parameter|stringValue$}} can be any literal or variable non-empty STRING value. Use LEN to check the length of a string. * {{Parameter|startPosition%}} designates the non-zero position of the first character to be returned by the function. * {{Par..."
  • 21:5021:50, 20 April 2022 diff hist +9,782 N OUTPUTCreated 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..."
  • 21:4921:49, 20 April 2022 diff hist +1,711 N PALETTE USINGCreated page with "The PALETTE USING statement sets all RGB screen color intensities using values from an array. {{PageSyntax}} : PALETTE USING array%({{Parameter|startIndex%}}) {{PageDescription}} * The array holds the RGB color value using the color value as {{InlineCode}}{{Parameter|red%}} + 256 * {{Parameter|green%}} + 65536 * {{Parameter|blue%}}{{InlineCodeEnd}}. ** Color intensities range from 0 to 63. * {{Parameter|startIndex%}} indicates the index..."
  • 21:4921:49, 20 April 2022 diff hist +2,069 N PALETTECreated page with "The PALETTE statement can swap color settings, set colors to default or set the red, green and blue color components of palette colors. {{PageSyntax}} : PALETTE [{{Parameter|attribute%}}, ''red%'' + (''green%'' * 256) + (''blue%'' * 65536)] : PALETTE [{{Parameter|existingAttribute%}}, {{Parameter|newAttribute%}}] {{PageDescription}} * {{Parameter|red%}}, {{Parameter|green%}} and {{Parameter|blue%}} values can range from 0 to 63. Many color shades are po..."
  • 21:4921:49, 20 April 2022 diff hist +6,138 N PAINTCreated page with "The PAINT statement is used to fill a delimited area in a graphic screen mode with color. {{PageSyntax}} : PAINT ['''STEP'''] ({{Parameter|column%}}, {{Parameter|row%}}), {{Parameter|fillColor}}[, {{Parameter|borderColor%}}] {{Parameters}} * Can use the STEP keyword for relative coordinate placements. See example 1 below. * {{Parameter|fillColor}} is an INTEGER or LONG 32-bit value to paint the inside of an object. Colors are limited to the SCRE..."
  • 21:4821:48, 20 April 2022 diff hist +1,814 N PRINT USING (file statement)Created page with "The '''PRINT #, USING''' statement is used to PRINT formatted text data to a file. {{PageSyntax}} :: '''PRINT ''filenumber%,''''' [''text$''{;|,}] '''USING ''template$''; ''variable'''''[; ...][{;|,}] {{Parameters}} * INTEGER ''filenumber'' refers to the file number OPENed previously followed by a comma. * Literal or variable STRING ''text$'' can be placed between PRINT and USING or it can be included in the ''template''. * A semicolon or c..."
  • 21:4721:47, 20 April 2022 diff hist +5,486 N SWAPCreated page with "The {{KW|SWAP}} statement is used to exchange two variable or array element values. {{PageSyntax}} :{{KW|SWAP}} {{Parameter|variable1}}, {{Parameter|variable2}} {{PageDescription}} * {{Parameter|variable1}} and {{Parameter|variable2}} are any type variables whose values will be exchanged. * If either {{Parameter|variable1}} or {{Parameter|variable2}} is an array, then an element in the array must be designated. * {{KW|SWAP}} can be used with string or number variabl..."
  • 21:4721:47, 20 April 2022 diff hist +1,623 N STRIG(n)Created page with "The {{KW|STRIG(n)}} statement controls event trapping for a particular joystick or game pad device button. {{PageSyntax}} ::STRIG({{Parameter|button%}}) {ON|OFF|STOP} QB64 {{PageSyntax}} ::STRIG[(''button_function%''[, ''device_number%''])] {ON|OFF|STOP} {{PageDescription}} * {{Parameter|button function}} specifies the device's button function. Even functions record events while odd ones read the actual presses. * '''QB64''' can designate a button function and cont..."
  • 21:4621:46, 20 April 2022 diff hist +1,784 N STRING$Created page with "The {{KW|STRING$}} function returns a {{KW|STRING}} consisting of a single character repeated a number of times. {{PageSyntax}} : result$ = STRING$(''count&'', {''character$'' | ''ASCIIcode%''} ) {{PageDescription}} <!-- Stylin --> * {{Parameter|count&}} is the number of times the character specified by {{Parameter|character}} is repeated. * Character is a literal string character, a string variable or an ASCII code number. * If {{Parameter|count&}} is negative,..."
  • 21:4621:46, 20 April 2022 diff hist +3,734 N STRIGCreated page with "The '''STRIG''' function returns button press True or False status of game port (&H201) or USB joystick control device(s). {{PageSyntax}} :: IF STRIG(button_function%) THEN ... QB64 {{PageSyntax}} :: IF STRIG(''button_function%''[, ''device_number%'']) THEN ... ''Description:'' * Function returns -1 when a button event(even functions) has occurred or a button is pressed(odd functions). * STRIG will not read keyboard or mouse buttons detected by _DEVICES. * The..."
  • 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)..."
  • 14:4614:46, 20 April 2022 diff hist +2,705 N HEX$Created page with "The HEX$ function returns the base 16 hexadecimal representation of an INTEGER, LONG or _INTEGER64 value as a STRING. {{PageSyntax}} :{{Parameter|result$}} = HEX$({{Parameter|decimalNumber}}) {{PageDescription}} * The function returns the string hexadecimal (base-16) representation of {{Parameter|decimalNumber}}. * The function does not return a leading sign space so LTRIM$ is not necessary. <!-- Confusing hack hidden: * Can be used in pla..."
  • 14:4614:46, 20 April 2022 diff hist +1,234 N EXPCreated page with "The EXP math function calculates the exponential function ('''e''' raised to the power of a {{Parameter|numericExpression}}). {{PageSyntax}} : {{Parameter|result}} = EXP({{Parameter|numericExpression}}) {{PageDescription}} * '''e''' is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity. * The {{Parameter|numericExpression}} must be less than or equal to '''88.02969''' or an "overflow" error will..."
  • 14:4614:46, 20 April 2022 diff hist +472 N EQVCreated page with "The EQV operator returns a value based on the ''equivalence'' of two conditions or values. {{PageSyntax}} : {{Parameter|result}} = {{Parameter|firstValue}} EQV {{Parameter|secondValue}} {{PageDescription}} * Returns true (-1) when both values are the same (''equivalent''). * Turns a bit on if both bits are the same, turns a bit off if both bits are different. {{Template:LogicalTruthTable}} {{PageSeeAlso}} * Binary * Boolean {{PageNavigation}}"
  • 14:4514:45, 20 April 2022 diff hist +823 N EOFCreated page with "The EOF function indicates that the end of a file has been reached. {{PageSyntax}} : {{Parameter|endReached%%}} = EOF([#]{{Parameter|fileNumber&}}) {{PageDescription}} * {{Parameter|fileNumber&}} is the number of the file being read. '''#''' is not required. * Returns 0 until the end of a file. This avoids a file read error. * Returns -1 (true) at the end of the file. <!-- confusing statement; further details are required: * CHR$(26) can be used to denote th..."
  • 14:4514:45, 20 April 2022 diff hist +6,767 N ENVIRON$Created page with "The ENVIRON$ function returns a STRING environmental value from '''Windows'''' environmental settings list. {{PageSyntax}} : {{Parameter|setting$}} = ENVIRON$({{{Parameter|listIndex%}}|{{Parameter|systemID$}}}) {{PageDescription}} * The function can use an INTEGER {{Parameter|listIndex%}} value or STRING {{Parameter|systemID$}} parameter. * {{Parameter|listIndex%}} refers to the number order of the environmental list. Returns are not in any parti..."
  • 14:4514:45, 20 April 2022 diff hist +754 N ENVIRONCreated page with "The ENVIRON statement is used to temporarily set or change an environmental string value. {{PageSyntax}} : ENVIRON {{Parameter|stringExpression$}} {{PageDescription}} * The {{Parameter|stringExpression$}} must include the environmental parameter ID and the setting: ** Using an '''=''' sign: ENVIRON "parameterID=setting" ** Using a space: ENVIRON "parameterID setting" * If the parameter ID did not previously exist in the environmental string table, it..." current
  • 14:4414:44, 20 April 2022 diff hist +1,857 N ENDCreated page with "The END statement terminates a program without an immediate exit or ends a procedure or statement block. {{PageSyntax}} : END [{{Parameter|returnCode%}}] : END IF : END TYPE : END SELECT : END SUB : END FUNCTION : END DECLARE {{PageDescription}} * In '''QB64''', END can be followed by a code that can be read by another module using the _SHELL or _SHEL..."
  • 14:4414:44, 20 April 2022 diff hist +5,749 N DO...LOOPCreated page with "'''DO...LOOP''' statements are used in programs to repeat code or return to the start of a procedure. {{PageSyntax}} ''Syntax 1:'' :'''DO''' [{{{KW|WHILE}}|{{KW|UNTIL}}} condition] :: ''{code}'' :: ⋮ :'''LOOP''' ''Syntax 2:'' :'''DO''' :: ''{code}'' :: ⋮ :'''LOOP''' [{{{KW|WHILE}}|{{KW|UNTIL}}} condition] {{PageDescription}} * '''DO UNTIL or DO WHILE used with LOOP''': The condition is evaluated before running the loop code. ::UNTIL checks..."
  • 14:4314:43, 20 April 2022 diff hist +2,376 N DEFSTRCreated page with "The DEFSTR statement defines all variables with names starting with the specified letter (or letter range) AS STRING variables instead of the SINGLE type default. ==Legacy support== * '''DEF''' statements (DEFDBL, DEFSNG, DEFLNG, DEFINT, DEFSTR) were used when storage space was a concern in older computers, as their usage could save up typing. Instead of {{InlineCode}}'''DIM a AS STRING, a2 AS STRING, a3 AS STRING'''{{InlineCodeEnd}}, si..."
  • 14:4314:43, 20 April 2022 diff hist +2,395 N DEFSNGCreated page with "The DEFSNG statement defines all variables with names starting with the specified letter (or letter range) AS SINGLE variables. ==Legacy support== * '''DEF''' statements (DEFDBL, DEFSNG, DEFLNG, DEFINT, DEFSTR) were used when storage space was a concern in older computers, as their usage could save up typing. Instead of {{InlineCode}}'''DIM a AS SINGLE, a2 AS SINGLE, a3 AS SINGLE'''{{InlineCodeEnd}}, simply having {{InlineCode}}'''DEFSNG A''..."
  • 14:4214:42, 20 April 2022 diff hist +2,392 N DEFLNGCreated page with "The DEFLNG statement defines all variables with names starting with the specified letter (or letter range) AS LONG variables instead of the SINGLE type default. ==Legacy support== * '''DEF''' statements (DEFDBL, DEFSNG, DEFLNG, DEFINT, DEFSTR) were used when storage space was a concern in older computers, as their usage could save up typing. Instead of {{InlineCode}}'''DIM a AS LONG, a2 AS LONG, a3 AS LONG'''{{InlineCodeEnd}}, simply hav..."
  • 14:4114:41, 20 April 2022 diff hist +2,410 N DEFINTCreated page with "The DEFINT statement defines all variables with names starting with the specified letter (or letter range) AS INTEGER variables instead of the SINGLE type default. ==Legacy support== * '''DEF''' statements (DEFDBL, DEFSNG, DEFLNG, DEFINT, DEFSTR) were used when storage space was a concern in older computers, as their usage could save up typing. Instead of {{InlineCode}}'''DIM a AS INTEGER, a2 AS INTEGER, a3 AS INTEGER'''{{InlineCodeEnd}}..."
  • 14:4114:41, 20 April 2022 diff hist +2,356 N DEFDBLCreated page with "The DEFDBL statement defines all variables with names starting with the specified letter (or letter range) AS DOUBLE variables instead of the SINGLE type default. ==Legacy support== * '''DEF''' statements (DEFDBL, DEFSNG, DEFLNG, DEFINT, DEFSTR) were used when storage space was a concern in older computers, as their usage could save up typing. Instead of {{InlineCode}}'''DIM a AS DOUBLE, a2 AS DOUBLE, a3 AS DOUBLE'''{{InlineCodeEnd}}, si..."
  • 14:4114:41, 20 April 2022 diff hist +2,729 N DEF SEGCreated page with "DEF SEG is used to define the area in memory to access QB64's emulated conventional memory. ==Legacy support== * '''QB64 implements memory access using _MEM and related functions. For that reason, DEF SEG isn't recommended practice anymore and is supported to maintain compatibility with legacy code.''' {{PageSyntax}} : DEF SEG [=][{segment|VARSEG(variable}] {{PageDescription}} * Used to set the pointer to a memory area of a variable/array or registe..."
  • 14:4014:40, 20 April 2022 diff hist +2,339 N DATE$Created page with "The DATE$ function returns the current computer date as a string in the format "mm-dd-yyyy". {{PageSyntax}} : {{Parameter|today$}} = DATE$ {{PageDescription}} * Returns the current computer date in the format "mm-dd-yyyy" (e.g., "12-25-2009"). {{PageExamples}} ''Example:'' Displaying the weekday and current date. {{CodeStart}} '' '' {{Cl|PRINT}} {{Cl|DATE$}} month$ = {{Cl|LEFT$}}({{Cl|DATE$}}, 2): M = {{Cl|VAL}}(month$) day$ = {{Cl|MID$}}({{Cl|DATE$}}, 4,..."
  • 14:4014:40, 20 April 2022 diff hist +1,543 N CVSMBFCreated page with "The CVDMBF function decodes a 4-byte STRING generated by MKSMBF$ (or read from a file) to SINGLE numeric values. {{PageSyntax}} : {{Parameter|result!}} = CVSMBF({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * '''QB64''' has _CV and _MK$ f..."
  • 14:3914:39, 20 April 2022 diff hist +1,514 N CVSCreated page with "The CVS function decodes a 4-byte STRING generated by MKS$ (or read from a file) to SINGLE numeric values. {{PageSyntax}} : {{Parameter|result!}} = CVS({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * '''QB64''' has _CV and _MK$ functions..."
  • 14:3914:39, 20 April 2022 diff hist +1,941 N CVLCreated page with "The CVL function decodes a 4-byte STRING generated by MKL$ (or read from a file) to LONG numeric values. {{PageSyntax}} : {{Parameter|result&}} = CVL({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * '''QB64''' has _CV and _MK$ functions wh..."
  • 14:3914:39, 20 April 2022 diff hist +3,225 N CVICreated page with "The CVI function decodes a 2-byte STRING generated by MKI$ (or read from a file) to INTEGER numeric values. {{PageSyntax}} : {{Parameter|result%}} = CVI({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * '''QB64''' has _CV and _MK$ functions..."
  • 14:3814:38, 20 April 2022 diff hist +1,576 N CVDMBFCreated page with "The CVDMBF function decodes an 8-byte STRING generated by MKDMBF$ (or read from a file) to DOUBLE numeric values. {{PageSyntax}} : {{Parameter|result#}} = CVDMBF({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * '''QB64''' has _CV and _MK$..."
  • 14:3814:38, 20 April 2022 diff hist +2,048 N CVDCreated page with "The CVD function decodes an 8-byte STRING generated by MKD$ (or read from a file) to DOUBLE numeric values. {{PageSyntax}} : {{Parameter|result#}} = CVD({{Parameter|stringData$}}) {{PageDescription}} * ''CV'' functions (CVD, CVS, CVI, CVL, CVDMBF, CVSMBF) are used to convert values encoded by ''MK$'' functions (MKD$, MKS$, MKI$, MKL$, MKDMBF$, MKSMBF$). * Variables of numerical types are also encoded..."
  • 14:3814:38, 20 April 2022 diff hist +677 N CSNGCreated page with "CSNG converts a numerical value to the closest SINGLE-precision number. {{PageSyntax}} : {{Parameter|singleValue!}} = CSNG({{Parameter|expression}}) {{Parameters}} * {{Parameter|expression}} is any TYPE of literal or variable numerical value or mathematical calculation. {{PageDescription}} * Returns the closest SINGLE decimal point value. * Also used to define a value as SINGLE-precision up to 7 decimals. {{PageExamples}} {{CodeStart}} A..."
  • 14:3714:37, 20 April 2022 diff hist +3,826 N COSCreated page with "The COS function returns the horizontal component or the cosine of an angle measured in radians. {{PageSyntax}} : {{Parameter|value!}} = COS({{Parameter|radianAngle!}}) {{Parameters}} * The {{Parameter|radianAngle!}} must be measured in radians. {{PageDescription}} * To convert from degrees to radians, multiply degrees * π / 180. * COSINE is the horizontal component of a unit vector in the direction theta (θ). * COS(x) can be calculated in ei..."
  • 05:4405:44, 20 April 2022 diff hist +820 N CLNGCreated page with "The CLNG function rounds decimal point numbers up or down to the nearest LONG integer value. {{PageSyntax}} : {{Parameter|value&}} = CLNG({{Parameter|expression}}) {{Parameters}} * {{Parameter|expression}} is any TYPE of literal or variable numerical value or mathematical calculation. {{PageDescription}} * Used when integer values exceed 32767 or are less than -32768. * Values greater than .5 are rounded up; .5 or lower are rounded down. * CLNG ca..."
  • 05:2905:29, 20 April 2022 diff hist +7,983 N CIRCLECreated page with "The CIRCLE statement is used in graphic SCREEN modes to create circles, arcs or ellipses. {{PageSyntax}} : CIRCLE [{{KW|STEP}}]'''('''{{Parameter|column}}''',''' {{Parameter|row}}'''),''' {{Parameter|radius%}}''',''' [{{Parameter|drawColor%}}][, {{Parameter|startRadian!}}, {{Parameter|stopRadian!}}] [, {{Parameter|aspect!}}] {{Parameters}} * Can use STEP for relative coordinate moves from the previous graphic coordinates. * Coordina..."
  • 05:2805:28, 20 April 2022 diff hist +2,533 N CHDIRCreated page with "The CHDIR statement changes the program's location from one working directory to another by specifying a literal or variable STRING path. {{PageSyntax}} :CHDIR {{Parameter|path$}} {{PageDescription}} * {{Parameter|path$}} is the new directory path the program will work in. * {{Parameter|path$}} can be an absolute path (starting from the root folder) or relative path (starting from the current program location). * If {{Parameter|path$}} specifies a non-exi..."
  • 05:2805:28, 20 April 2022 diff hist +2,178 N CHAINCreated page with "CHAIN is used to change seamlessly from one module to another one in a program. ==Legacy support== * The multi-modular technique goes back to when QBasic and QuickBASIC had module size constraints. In QB64 CHAIN 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 no longer ex..."
  • 05:2705:27, 20 April 2022 diff hist +938 N CDBLCreated page with "CDBL converts a value to the closest DOUBLE-precision value. {{PageSyntax}} : {{Parameter|doubleValue#}} = CDBL({{Parameter|expression}}) {{Parameters}} * {{Parameter|expression}} is any TYPE of literal or variable numerical value or mathematical calculation. {{PageDescription}} * Rounds to the closest DOUBLE floating decimal point value. * Also can be used to define a value as DOUBLE-precision up to 15 decimals. {{PageExamples}} ''Exampl..." Tag: visualeditor-switched
  • 05:2705:27, 20 April 2022 diff hist +25 N CASE ISRedirected page to SELECT CASE current Tags: New redirect visualeditor
  • 05:2605:26, 20 April 2022 diff hist +25 N CASE ELSERedirected page to SELECT CASE current Tags: New redirect visualeditor
  • 05:2505:25, 20 April 2022 diff hist +25 N CASERedirected page to SELECT CASE current Tags: New redirect visualeditor
  • 05:2405:24, 20 April 2022 diff hist +3,024 N CALLCreated page with "CALL sends code execution to a subroutine procedure in a program. In '''QB64''' the subroutine doesn't need to be declared. {{PageSyntax}} : CALL {{Parameter|ProcedureName}} ({{Parameter|parameter1}}, {{Parameter|parameter2}},...)] ===Alternative syntax=== : {{Parameter|ProcedureName}} {{Parameter|parameter1}}, {{Parameter|parameter2}},...] * CALL requires SUB program parameters to be enclosed in brackets (parenthesis). * CALL is not required to call a s..."
  • 04:3604:36, 20 April 2022 diff hist +5,950 N BYVALCreated page with "The '''DECLARE LIBRARY''' declaration allows the use of external library SUB and FUNCTION procedures supported by QB64. {{PageSyntax}} : '''DECLARE''' [DYNAMIC|CUSTOMTYPE|STATIC] '''LIBRARY''' [{''"Library_filename"''|''"Headerfile"''}] : {SUB|FUNCTION} [''procedure_name'' {{KW|ALIAS}}] ''library_procedure'' ([{{KW|BYVAL}}] ''parameter {{KW|AS}}'', ...) ::. ::. 'other SUBs or Functions as required ::. : '''END DECLARE''' {{Parameters}} * The {{Paramet..."
  • 04:3504:35, 20 April 2022 diff hist +5,589 N BSAVECreated page with "BSAVE saves the contents of an image array to a BINARY file. ==Legacy support== * '''QB64 can save larger arrays directly to binary files using PUT # and GET # without BSAVE. For that reason, BSAVE isn't recommended practice anymore and is supported to maintain compatibility with legacy code. {{PageSyntax}} : BSAVE {{Parameter|saveFile$}}, VARPTR({{Parameter|array(index)}}), {{Parameter|fileSize&}} {{Parameters}} * {{Parameter|saveFile$}} is..."
  • 04:3504:35, 20 April 2022 diff hist +2,668 N BLOADCreated page with "BLOAD loads a binary graphics file created by BSAVE to an array. ==Legacy support== * '''QB64 can load larger arrays directly from binary files using PUT # and GET # without BLOAD. For that reason, BLOAD isn't recommended practice anymore and is supported to maintain compatibility with legacy code.''' {{PageSyntax}} : BLOAD {{Parameter|fileName$}}, VARPTR({{Parameter|imageArray%({{Parameter|index}})}}) {{Parameters}} * {{Parameter|fileName$}..."
  • 04:3504:35, 20 April 2022 diff hist +855 N BEEPCreated page with "The BEEP statement produces a beep sound through the sound card. {{PageSyntax}} : BEEP {{PageDescription}} * BEEP can be placed anywhere to alert the user that there is something to do or an error has occurred. * '''QB64''' produces the actual "beep" sound through the PC's sound card, to emulate QBasic's beeping through the [https://en.wikipedia.org/wiki/PC_speaker PC speaker]. ==QBasic/QuickBASIC== * Older programs may attempt to produce a BEEP by prin..."
  • 04:3304:33, 20 April 2022 diff hist +3,021 N ATNCreated page with "The ATN or arctangent function returns the angle in radians of a numerical tangent value. {{PageSyntax}} : {{Parameter|radianAngle}} = ATN({{Parameter|tangent!}}) {{Parameters}} * The return is the {{Parameter|tangent!}}'s angle in '''radians'''. * {{Parameter|tangent!}} SINGLE or DOUBLE values are used by the function. EX:'''{{text|Pi <nowiki>=</nowiki> 4 * ATN(1)|green}}''' {{PageDescription}} * To convert from radians to degrees, multiply..."
  • 04:3204:32, 20 April 2022 diff hist +10,800 N ASCCreated page with "The ASC function returns the ASCII code number of a certain STRING text character or a keyboard press. {{PageSyntax}} : {{Parameter|code%}} = ASC({{Parameter|text$}}[, {{Parameter|position%}}]) * {{Parameter|text$}} string character parameter must have a length of at least 1 byte or an error occurs. * '''In QB64''' the optional byte {{Parameter|position%}} INTEGER parameter greater than 0 can specify the ASCII code of any character in..."
  • 04:3204:32, 20 April 2022 diff hist +9,782 N APPENDCreated 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..."
  • 04:3104:31, 20 April 2022 diff hist +1,943 N AND (boolean)Created page with "The AND conditonal operator is used to include another evaluation in an IF...THEN or Boolean statement. {{PageSyntax}} : IF {{Parameter|condition}} AND {{Parameter|condition2}} {{PageDescription}} * If {{Parameter|condition}} AND {{Parameter|condition2}} are true then the evaluation returns true (-1). * {{Parameter|condition}} and {{Parameter|condition2}} can also contain their own AND evaluations. * Both..."
  • 04:3104:31, 20 April 2022 diff hist +2,537 N ANDCreated page with "The logical AND numerical operator compares two values in respect of their bits. If both bits at a certain position in both values are set, then that bit position is set in the result. {{PageSyntax}} :{{Parameter|result}} = {{Parameter|firstvalue}} AND {{Parameter|secondvalue}} {{PageDescription}} * AND compares the bits of the {{Parameter|firstvalue}} against the bits of the {{Parameter|secondvalue}}, the result is stored in the {{Parameter|result}} variable..." Tag: visualeditor-switched
  • 04:2904:29, 20 April 2022 diff hist +29 N ALIASRedirected page to DECLARE LIBRARY Tags: New redirect visualeditor
  • 04:2604:26, 20 April 2022 diff hist +1,074 N CALL ABSOLUTECreated page with "CALL ABSOLUTE is used to access interrupts on the computer or execute assembly type procedures. {{PageSyntax}} : CALL ABSOLUTE([{{Parameter|argumentList}},] {{Parameter|integerOffset}}) ==Legacy support== * CALL ABSOLUTE is implemented to support older code and is not recommended practice. To handle mouse input, the '''use _MOUSEINPUT and related functions'''. {{PageDescription}} * CALL and parameter brackets are required in the statement. * {{P..."
  • 04:2504:25, 20 April 2022 diff hist +973 N ABSCreated page with "The ABS function returns the unsigned numerical value of a variable or literal value. {{PageSyntax}} :{{Parameter|positive}} = ABS({{Parameter|numericalValue}}) {{PageDescription}} * ABS always returns positive numerical values. The value can be any numerical type. * Often used to keep a value positive when necessary in a program. * Use SGN to determine a value's sign when necessary. * '''QB64''' allows programs to return only positive _UNSIGNED..."

19 April 2022

  • 20:4820:48, 19 April 2022 diff hist +1,381 N WINDOWHASFOCUSCreated page with "{{DISPLAYTITLE:_WINDOWHASFOCUS}} The _WINDOWHASFOCUS function returns true (-1) if the current program's window has focus. Windows-only. {{PageSyntax}} : {{Parameter|hasFocus%%}} = _WINDOWHASFOCUS {{PageDescription}} * The function returns true (-1) if the current program is the topmost window on the user's desktop and has focus. If the current program is running behind another window, the function returns false (0). * Keywords_currently_not_supported_by_QB..."
  • 20:4820:48, 19 April 2022 diff hist +4,760 N WINDOWHANDLECreated page with "{{DISPLAYTITLE:_WINDOWHANDLE}} The _WINDOWHANDLE function returns the window handle assigned to the current program by the OS. Windows-only. {{PageSyntax}} : {{Parameter|hwnd&&}} = _WINDOWHANDLE {{PageDescription}} * The result is an _INTEGER64 number assigned by Windows to your running program. * Use it to make API calls that require a window handle to be passed. * Keywords_currently_not_supported_by_QB64#Keywords_Not_Supported_in..."
  • 20:4820:48, 19 April 2022 diff hist +2,562 N WIDTH (function)Created page with "{{DISPLAYTITLE:_WIDTH (function)}} The _WIDTH function returns the width of an image handle or of the current write page. {{PageSyntax}} : {{Parameter|columns&}} = _WIDTH[({{Parameter|imageHandle&}})] {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it's assumed to be the handle of the current SCREEN or write page. * To get the width of the current program screen window use zero for the handle..."
  • 20:4720:47, 19 April 2022 diff hist +3,132 N WHEELCreated page with "{{DISPLAYTITLE:_WHEEL}} The _WHEEL function returns the relative position of a specified wheel number on a controller device. {{PageSyntax}} : {{Parameter|move}} = _WHEEL({{Parameter|wheelNumber%}}) * Returns -1 when scrolling up and 1 when scrolling down with 0 indicating no movement since last read. * Add consecutive wheel values to determine a cumulative value over time for scrolling or moving objects. * {{Parameter|wheelNumber%}} must be a number which do..."
  • 20:4720:47, 19 April 2022 diff hist +531 N $VIRTUALKEYBOARDCreated page with "{{DISPLAYTITLE:$VIRTUALKEYBOARD}} [DEPRACATED] The $VIRTUALKEYBOARD metacommand turns the virtual keyboard ON or OFF. {{PageSyntax}} : $VIRTUALKEYBOARD:{ON|OFF} {{PageDescription}} * Places a virtual keyboard on screen, which can be used in touch-enabled devices like Windows tablets. * Depracated. {{PageExamples}} {{CodeStart}} {{Cl|$VIRTUALKEYBOARD}}:ON {{Cl|DO}}: {{Cl|LOOP}} {{Cl|UNTIL}} {{Cl|INKEY$}} = {{Cl|CHR$}}(27) '' '' {{CodeEnd}}..."
  • 20:4720:47, 19 April 2022 diff hist +1,477 N $VERSIONINFOCreated page with "{{DISPLAYTITLE:$VERSIONINFO}} The $VERSIONINFO metacommand adds text metadata to the resulting executable for identification purposes across the OS. Windows-only. {{PageSyntax}} : $VERSIONINFO:{{Parameter|key}}={{Parameter|value}} {{Parameters}} * Text ''keys'' can be: '''CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments''' * Numeric {{Parameter|keys}} can be:'''FILEVERS..."
  • 20:4620:46, 19 April 2022 diff hist +1,157 N TRIM$Created page with "{{DISPLAYTITLE:_TRIM$}} The _TRIM$ function removes both leading and trailing space characters from a STRING value. {{PageSyntax}} :{{Parameter|return$}} = _TRIM$({{Parameter|text$}}) {{PageDescription}} * Shorthand to using LTRIM$(RTRIM$("text")) * {{Parameter|text$}} is the STRING value to trim. * If {{Parameter|text$}} contains no leading or trailing space characters, it is returned unchanged. * Convert fixed length STRING values by usi..."
  • 20:4620:46, 19 April 2022 diff hist +1,299 N TOTALDROPPEDFILESCreated page with "{{DISPLAYTITLE:_TOTALDROPPEDFILES}} The _TOTALDROPPEDFILES function returns the number of items (files or folders) dropped in a program's window after _ACCEPTFILEDROP is enabled. {{PageSyntax}} : {{Parameter|totalFilesReceived&}} = _TOTALDROPPEDFILES {{PageDescription}} * After _ACCEPTFILEDROP is enabled, _TOTALDROPPEDFILES will return 0 until the user drops files or folders into the program's window. * When using _DROPPEDFILE to read the list..."
  • 20:4520:45, 19 April 2022 diff hist +1,311 N TOGGLEBITCreated page with "{{DISPLAYTITLE:_TOGLEBIT}} The _TOGGLEBIT function is used to toggle a specified bit of a numerical value. {{PageSyntax}} :{{Parameter|result}} = _TOGGLEBIT({{Parameter|numericalVariable}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalVariable}} is the variable to toggle the bit of and can be of the following types: _BYTE, INTEGER, LONG, or _INTEGER64. * Integer values can be signed or _UNSIGNED. * {{Parameter|numeri..."
  • 20:4520:45, 19 April 2022 diff hist +439 N TITLE$Created page with "{{DISPLAYTITLE:_TITLE$}} The _TITLE$ function returns the program title last set by the _TITLE statement. {{PageSyntax}} : {{Parameter|currentTitle$}} = _TITLE$ {{PageDescription}} * If no title has been set, the title bar will say "Untitled" and this function will return an empty string (""). ==Availability== * '''Build 20170924/68.''' {{PageSeeAlso}} * _TITLE * _CONSOLETITLE {{PageNavigation}}"
  • 20:4420:44, 19 April 2022 diff hist +2,156 N TITLECreated page with "{{DISPLAYTITLE:_TITLE}} The _TITLE statement provides the program name in the title bar of the program window. {{PageSyntax}} : _TITLE {{Parameter|text$}} {{Parameters}} * {{Parameter|text$}} can be any literal or variable STRING or ASCII character value. {{PageDescription}} * The title can be changed anywhere in a program procedure. * The title bar will say "Untitled" if a title is not set. * Change the title of the $CONSOLE windows created usi..."
  • 20:4420:44, 19 April 2022 diff hist +623 N STRICMPCreated page with "{{DISPLAYTITLE:_STRICMP}} The _STRICMP function compares the relationship between two strings, ignoring upper or lower case letters. {{PageSyntax}} : {{Parameter|comparison%}} = _STRICMP({{Parameter|string1$}}, {{Parameter|string2$}}) {{PageDescription}} * Function returns -1 when {{Parameter|string1$}} is less than {{Parameter|string2$}}, 0 when equal or 1 when {{Parameter|string1$}} is greater than {{Parameter|string2$}}. * Alphabet comparisons will be eva..."
  • 20:4320:43, 19 April 2022 diff hist +610 N STRCMPCreated page with "{{DISPLAYTITLE:_STRCMP}} The _STRCMP function compares the relationship between two strings, comparing upper or lower case. {{PageSyntax}} : {{Parameter|comparison%}} = _STRCMP({{Parameter|string1$}}, {{Parameter|string2$}}) {{PageDescription}} * Function returns -1 when {{Parameter|string1$}} is less than {{Parameter|string2$}}, 0 when equal or 1 when {{Parameter|string1$}} is greater than {{Parameter|string2$}}. * Upper case letters are valued less than lo..."
  • 20:4320:43, 19 April 2022 diff hist +630 N STARTDIR$Created page with "{{DISPLAYTITLE:_STARTDIR$}} The _STARTDIR$ function returns the path a user called a QB64 program from. {{PageSyntax}} : {{Parameter|callPath$}} = _STARTDIR$ {{PageDescription}} * Returns a STRING representing the user's program calling path. ==Availability== * '''Version 1.000 and up'''. {{PageExamples}} ''Example:'' Showcasing QB64 path functions: {{CodeStart}} '' '' {{Cl|$CONSOLE}}:ONLY {{Cl|_DEST}} {{Cl|_CONSOLE}} {{Cl|SHELL}} "cd" {{Cl|PRINT}} {{C..."
  • 20:4320:43, 19 April 2022 diff hist +564 N SOURCE (function)Created page with "{{DISPLAYTITLE:_SOURCE (function)}} The _SOURCE function returns the present image source handle value. {{PageSyntax}} : {{Parameter|currentSource&}} = _SOURCE {{PageDescription}} * Returns a handle value that is a LONG integer type. * Save the source handle to a LONG variable for later restoration using the _SOURCE statement. {{PageExamples}} See the examples in: * Bitmaps * SAVEIMAGE * SaveIcon32..."
  • 20:4220:42, 19 April 2022 diff hist +1,368 N SOURCECreated page with "{{DISPLAYTITLE:_SOURCE}} The _SOURCE statement establishes the image SOURCE using a handle created by _LOADIMAGE, _NEWIMAGE or _COPYIMAGE. {{PageSyntax}} : _SOURCE {{Parameter|handle&}} {{PageDescription}} * The handle is a LONG integer value from the _SOURCE function or a handle created by _NEWIMAGE. * If the handle is designated as 0, it refers to the current SCREEN image. * A source image can only supply info..."
  • 20:4220:42, 19 April 2022 diff hist +687 N SNDVOLCreated page with "{{DISPLAYTITLE:_SNDVOL}} The _SNDVOL statement sets the volume of a sound loaded in memory using a handle from the _SNDOPEN function. {{PageSyntax}} : _SNDVOL {{Parameter|handle&}}, {{Parameter|volume!}} {{PageDescription}} * {{Parameter|volume!}} is a value from 0 (silence) to 1 (full volume). * In versions '''prior to build 20170811/60''', the sound identified by {{Parameter|handle&}} must have been opened using the "VOL" capability to use..."
  • 20:4120:41, 19 April 2022 diff hist +436 N SNDSTOPCreated page with "{{DISPLAYTITLE:_SNDSTOP}} The _SNDSTOP statement stops a playing or paused sound using a handle from the _SNDOPEN or _SNDCOPY functions. {{PageSyntax}} : _SNDSTOP {{Parameter|handle&}} {{PageDescription}} * Sounds can be resumed using _SNDPLAY with the correct handle. {{PageExamples}} ''Example:'' {{CodeStart}} '' '' {{Cl|_SNDSTOP}} h& '' '' {{CodeEnd}} {{PageSeeAlso}} * _SNDPAUSE {{PageNavigation}}"
  • 20:4120:41, 19 April 2022 diff hist +1,370 N SNDSETPOSCreated page with "{{DISPLAYTITLE:_SNDSETPOS}} The _SNDSETPOS statement changes the current/starting playing position in seconds of a sound. {{PageSyntax}} : _SNDSETPOS {{Parameter|handle&}}, {{Parameter|position!}} {{PageDescription}} *Changes the current/starting playing position in seconds (a SINGLE value) of a sound in memory. *If {{Parameter|position!}} is past the length of the sound, playback will be interrupted. *Function cannot be called while a looping sound is be..."
  • 20:4120:41, 19 April 2022 diff hist +1,090 N SNDRAWLENCreated page with "{{DISPLAYTITLE:_SNDRAWLEN}} The _SNDRAWLEN function returns the length, in seconds, of a _SNDRAW sound currently queued. {{PageSyntax}} : {{Parameter|length#}} = _SNDRAWLEN {{PageDescription}} * Use _SNDRAWLEN to determine the length of a sound queue during creation and when to stop playing the sound. * Ensure that _SNDRAWLEN is comfortably above 0 (until you've actually finished playing sound). * If you are getting occasional random clicks, this..."
  • 20:4020:40, 19 April 2022 diff hist +408 N SNDRAWDONECreated page with "{{DISPLAYTITLE:_SNDRAWDONE}} _SNDRAWDONE ensures that the final buffer portion is played in short sound effects even if it is incomplete. {{PageSyntax}} : _SNDRAWDONE {{PageDescription}} * Use to force playing small buffers of _SNDRAW data. ==Availability== * '''Version 1.000 and up''' {{PageSeeAlso}} * _SNDOPENRAW * _SNDRAW * _SNDRAWLEN * _SNDRATE {{PageNavigation}}"
  • 20:4020:40, 19 April 2022 diff hist +5,353 N SNDRAWCreated page with "{{DISPLAYTITLE:_SNDRAW}} The _SNDRAW statement plays sound wave sample frequencies created by a program. {{PageSyntax}} : _SNDRAW {{Parameter|leftSample}}[, {{Parameter|rightSample}}][, {{Parameter|pipeHandle&}}] {{Parameters}} * The {{Parameter|leftSample}} and {{Parameter|rightSample}} value(s) can be any SINGLE or DOUBLE literal or variable frequency value from -1.0 to 1.0. * The {{Parameter|pipeHandle&}} parameter refers to the sound pipe opened..."
  • 20:3920:39, 19 April 2022 diff hist +547 N SNDRATECreated page with "{{DISPLAYTITLE:_SNDRATE}} The _SNDRATE function returns the sample rate frequency per second of the current computer's sound card. {{PageSyntax}} : {{Parameter|sampleRate&}} = _SNDRATE {{PageDescription}} * The sample rate frequency per second value returned can be any LONG value. Common values are 22050 or 44100. * '''The sound card sample rate is determined by the sound card and it cannot be changed.''' {{PageExamples}} * See the example in [[_SNDRAW]..."
  • 20:3920:39, 19 April 2022 diff hist +578 N SNDPLAYINGCreated page with "{{DISPLAYTITLE:_SNDPLAYING}} The _SNDPLAYING function returns whether a sound is being played. Uses a handle from the _SNDOPEN or _SNDCOPY functions. {{PageSyntax}} :{{Parameter|isPlaying%}} = _SNDPLAYING({{Parameter|handle&}}) {{PageDescription}} *Returns false (0) if a sound is not playing or true (-1) if it is. *If a sound is paused, _SNDPLAYING returns 0. {{PageExamples}} {{CodeStart}} '' '' {{Cl|PRINT}} {{Cl|_SNDPLAYING}}(h&) '' '' {{CodeEn..."
  • 20:3820:38, 19 April 2022 diff hist +1,444 N SNDPLAYFILECreated page with "{{DISPLAYTITLE:_SNDPLAYFILE}} The _SNDPLAYFILE statement is used to play a sound file without generating a handle, automatically closing it after playback finishes. {{PageSyntax}} :_SNDPLAYFILE {{Parameter|filename$}}[, {{Parameter|ignored%}}][, {{Parameter|volume!}}] {{PageDescription}} * Supported file formats are '''WAV, OGG and MP3'''. See _SNDOPEN. * {{Parameter|ignored%}} is an optional parameter , accepted for historical reasons. ** In versions pr..."
  • 20:3820:38, 19 April 2022 diff hist +1,271 N SNDPLAYCOPYCreated page with "{{DISPLAYTITLE:_SNDPLAYCOPY}} The _SNDPLAYCOPY statement copies a sound, plays it, and automatically closes the copy using a handle parameter passed from _SNDOPEN or _SNDCOPY {{PageSyntax}} : _SNDPLAYCOPY {{Parameter|handle&}}[, {{Parameter|volume!}}] {{Parameters}} * The LONG {{Parameter|handle&}} value is returned by _SNDOPEN using a specific sound file. * The {{Parameter|volume!}} parameter can be any SINGLE value from 0 (no volume) to..."
  • 20:2520:25, 19 April 2022 diff hist +533 N SNDPLAYCreated page with "{{DISPLAYTITLE:_SNDPLAY}} The _SNDPLAY statement plays a sound designated by a file handle created by _SNDOPEN. {{PageSyntax}} : _SNDPLAY {{Parameter|handle&}} {{PageDescription}} * Make sure that the {{Parameter|handle&}} value is not 0 before attempting to play it. {{PageExamples}} ''Example:'' Checking a handle value before playing {{CodeStart}} '' '' {{Cl|IF...THEN|IF}} h& {{Cl|THEN}} {{Cl|_SNDPLAY}} h& '' '' {{CodeEnd}} {{PageSeeAlso}} * _SNDO..."
  • 20:2520:25, 19 April 2022 diff hist +486 N SNDPAUSEDCreated page with "{{DISPLAYTITLE:_SNDPAUSED}} The _SNDPAUSED function checks if a sound is paused. Uses a handle parameter passed from _SNDOPEN. {{PageSyntax}} : {{Parameter|isPaused%%}} = _SNDPAUSED({{Parameter|handle&}}) {{PageDescription}} *Returns true (-1) if the sound is paused. False (0) if not paused. {{PageExamples}} {{CodeStart}} '' '' {{Cl|PRINT}} {{Cl|_SNDPAUSED}}(h&) '' '' {{CodeEnd}} {{PageSeeAlso}} * _SNDPAUSE, _SNDPLAY, * _SNDSTOP {{PageN..."
  • 20:2420:24, 19 April 2022 diff hist +523 N SNDPAUSECreated page with "{{DISPLAYTITLE:_SNDPAUSE}} The _SNDPAUSE statement pauses a sound using a handle from the _SNDOPEN function. {{PageSyntax}} : _SNDPAUSE {{Parameter|handle&}} {{PageDescription}} * Continue playing by calling _SNDPLAY {{Parameter|handle&}} * In versions '''prior to build 20170811/60''', the sound identified by {{Parameter|handle&}} must have been opened using the "PAUSE" capability to use this function. {{PageSeeAlso}} * _SNDPLAY, ..."
  • 20:2420:24, 19 April 2022 diff hist +906 N SNDOPENRAWCreated page with "{{DISPLAYTITLE:_SNDOPENRAW}} The _SNDOPENRAW function opens a new channel to fill with _SNDRAW content to manage multiple dynamically generated sounds. {{PageSyntax}} : {{Parameter|pipeHandle&}} = _SNDOPENRAW {{PageDescription}} * You can manage multiple dynamically generated sounds at once without having to worry about mixing. * Use _SNDCLOSE to remove the pipe sound handles from memory. {{PageExamples}} ''Example:'' Combining 2 sounds without worrying..."
  • 20:2420:24, 19 April 2022 diff hist +3,960 N SNDOPENCreated page with "{{DISPLAYTITLE:_SNDOPEN}} The _SNDOPEN function loads a sound file into memory and returns a LONG handle value above 0. {{PageSyntax}} : {{Parameter|soundHandle&}} = _SNDOPEN({{Parameter|fileName$}}) {{PageDescription}} * Returns a LONG {{Parameter|soundHandle&}} value to the sound file in memory. '''A zero value means the sound could not be loaded.''' * The literal or variable STRING sound {{Parameter|fileName$}} can be '''WAV, OGG or MP3''' file..."
  • 20:2320:23, 19 April 2022 diff hist +760 N SNDLOOPCreated page with "{{DISPLAYTITLE:_SNDLOOP}} The _SNDLOOP statement is like _SNDPLAY but the sound is looped. Uses a handle from the _SNDOPEN function. {{PageSyntax}} : _SNDLOOP {{Parameter|handle&}} {{PageDescription}} *Plays the sound identified by {{Parameter|handle&}} in a loop. {{PageExamples}} ''Example:'' Loading a sound or music file and playing it in a loop until a key is pressed. {{CodeStart}} '' '' bg = {{Cl|_SNDOPEN}}("back.ogg") '<<<<<<<<<< change to your..."
  • 20:2220:22, 19 April 2022 diff hist +931 N SNDLIMITCreated page with "{{DISPLAYTITLE:_SNDLIMIT}} The _SNDLIMIT statement stops playing a sound after it has been playing for a set number of seconds. {{PageSyntax}} : _SNDLIMIT {{Parameter|handle&}}, {{Parameter|numberOfSeconds!}} {{Parameters}} * The {{Parameter|handle&}} variable name is created using the _SNDOPEN function from a loaded sound file. * {{Parameter|numberOfSeconds!}} is a SINGLE value of seconds that the sound will play. {{PageDescription}} *Sets how lon..."
  • 20:2220:22, 19 April 2022 diff hist +539 N SNDLENCreated page with "{{DISPLAYTITLE:_SNDLEN}} The _SNDLEN function returns the length in seconds of a loaded sound using a handle from the _SNDOPEN function. {{PageSyntax}} : {{Parameter|soundLength}} = _SNDLEN({{Parameter|handle&}}) {{PageDescription}} * Returns the length of a sound in seconds. * In versions '''prior to build 20170811/60''', the sound identified by {{Parameter|handle&}} must have been opened using the "LEN" capability to use this function. {{..."
  • 20:2220:22, 19 April 2022 diff hist +1,356 N SNDGETPOSCreated page with "{{DISPLAYTITLE:_SNDGETPOS}} The _SNDGETPOS function returns the current playing position in seconds using a handle from _SNDOPEN. {{PageSyntax}} :{{Parameter|position}} = _SNDGETPOS({{Parameter|handle&}}) {{PageDescription}} *Returns the current playing position in seconds from an open sound file. *If a sound isn't playing, it returns 0. *If a sound is paused, it returns the paused position. *For a looping sound, the value returned continues to increment..."
  • 20:2120:21, 19 April 2022 diff hist +839 N SNDCOPYCreated page with "{{DISPLAYTITLE:_SNDCOPY}} The _SNDCOPY function copies a sound to a new handle so that two or more of the same sound can be played at once. The passed handle parameter is from the _SNDOPEN function. {{PageSyntax}} : {{Parameter|copyHandle&}} = _SNDCOPY({{Parameter|handle&}}) {{PageDescription}} * Returns a new handle to the a copy in memory of the sound data referred to by the source handle. * No changes to the source handle (such as a volume change) are..." current
  • 20:2120:21, 19 April 2022 diff hist +530 N SNDCLOSECreated page with "{{DISPLAYTITLE:_SNDCLOSE}} The _SNDCLOSE statement frees and unloads an open sound using a _SNDOPEN or _SNDCOPY handle. {{PageSyntax}} : _SNDCLOSE {{Parameter|handle&}} {{PageDescription}} * If the sound is still playing, it will be freed automatically after it finishes. ** Closing a looping/paused/etc. sound means it is never freed until the QB64 program terminates. * When your QB64 program terminates, all sounds are automatically freed. {{PageSeeA..."
  • 20:2020:20, 19 April 2022 diff hist +3,621 N SNDBALCreated page with "{{DISPLAYTITLE:_SNDBAL}} The _SNDBAL statement attempts to set the balance or 3D position of a sound. {{PageSyntax}} : _SNDBAL {{Parameter|handle&}}[, {{Parameter|x!}}][, {{Parameter|y!}}][, {{Parameter|z!}}][, {{Parameter|channel&}}]] {{Parameters}} * ''handle&'' is a valid sound handle created by the _SNDOPEN function. * {{Parameter|x!}} distance values go from left (negative) to right (positive). * {{Parameter|y!}} distance values go from below (negati..."
  • 20:2020:20, 19 April 2022 diff hist +1,674 N SHRCreated page with "{{DISPLAYTITLE:_SHR}} The _SHR function is used to shift the bits of a numerical value to the right. {{PageSyntax}} :{{Parameter|result}} = _SHR({{Parameter|numericalVariable}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalVariable}} is the variable to shift the bits of and can be of the following types: INTEGER, LONG, _INTEGER64, or _BYTE. * Integer values can be signed or _UNSIGNED. * {{Parameter|numericalValue}} t..."
  • 20:1920:19, 19 April 2022 diff hist +1,859 N SHLCreated page with "{{DISPLAYTITLE:_SHL}} The _SHL function is used to shift the bits of a numerical value to the left. {{PageSyntax}} :{{Parameter|result}} = _SHL({{Parameter|numericalVariable}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalVariable}} is the variable to shift the bits of and can be of the following types: INTEGER, LONG,_INTEGER64, or _BYTE. * Integer values can be signed or _UNSIGNED. * {{Parameter|numericalValue}} is..."
  • 20:1820:18, 19 April 2022 diff hist +1,142 N SHELLHIDECreated page with "{{DISPLAYTITLE:_SHELLHIDE}} The _SHELLHIDE function hides the console window and returns any INTEGER code sent when a program exits. {{PageSyntax}} : {{Parameter|returnCode%}} = _SHELLHIDE({{Parameter|externalCommand$}}) {{Parameters}} * The literal or variable STRING {{Parameter|externalCommand$}} parameter can be any external command or call to another program. {{PageDescription}} * A QB64 program can return codes specified after END or SYST..."
  • 20:1820:18, 19 April 2022 diff hist +1,227 N SETBITCreated page with "{{DISPLAYTITLE:_SETBIT}} The _SETBIT function is used to set a specified bit of a numerical value to 1 (on state). {{PageSyntax}} :{{Parameter|result}} = _SETBIT({{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. * {{Parameter|nume..."
  • 20:1820:18, 19 April 2022 diff hist +3,448 N SETALPHACreated page with "{{DISPLAYTITLE:_SETALPHA}}{{DISPLAYTITLE:}} The _SETALPHA statement sets the alpha channel transparency level of some or all of the pixels of an image. {{PageSyntax}} : _SETALPHA {{Parameter|alpha&}}[, {{Parameter|color1&}}][ TO {{Parameter|colour2&}}] [, {{Parameter|imageHandle&}}] {{Parameters}} * {{Parameter|alpha&}} is the new alpha level to set, ranging from 0 (transparent) to 255 (opaque). * {{Parameter|color1&}} designates the 32-bit LONG color..."
  • 20:1720:17, 19 April 2022 diff hist +496 N SCROLLLOCKCreated page with "{{DISPLAYTITLE: _SCROLLLOCK}} The _SCROLLLOCK statement sets the state of the Scroll Lock key. {{PageSyntax}} : _SCROLLLOCK {ON|OFF|_TOGGLE} ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _CAPSLOCK (function), _NUMLOCK (function), _SCROLLLOCK (function) * _CAPSLOCK (statement), _NUMLOCK (statement)..."
  • 20:1720:17, 19 April 2022 diff hist +599 N SCROLLLOCK (function)Created page with "{{DISPLAYTITLE: _SCROLLLOCK (function)}} The _SCROLLLOCK function returns the current state of the Scroll Lock key as on (-1) or off (0). {{PageSyntax}} : {{Parameter|keyStatus%%}} = _SCROLLLOCK ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _CAPSLOCK (function), _..."
  • 20:1520:15, 19 April 2022 diff hist +973 N SCREENYCreated page with "{{DISPLAYTITLE:_SCREENY}} The _SCREENY function returns the current row pixel coordinate of the program window on the desktop. {{PageSyntax}} : {{Parameter|positionY&}} = _SCREENY {{PageDescription}} * Function returns the current program window's upper left corner row position on the desktop. * Use _DESKTOPWIDTH and _DESKTOPHEIGHT to find the current user's Windows desktop resolution to adjust the position with _SCREENMOVE. * Keywords_currently..."
  • 20:1520:15, 19 April 2022 diff hist +966 N SCREENXCreated page with "{{DISPLAYTITLE:_SCREENX}} The _SCREENX function returns the current column pixel coordinate of the program window on the desktop. {{PageSyntax}} : {{Parameter|positionX&}} = _SCREENX {{PageDescription}} * Function returns the current program window's upper left corner column position on the desktop. * Use _DESKTOPWIDTH and _DESKTOPHEIGHT to find the current Windows desktop resolution to adjust the position with _SCREENMOVE. * Keywords_currently_..."
  • 20:1520:15, 19 April 2022 diff hist +762 N SCREENSHOWCreated page with "The $SCREENSHOW metacommand can be used to display the main program window throughout the program. {{PageSyntax}} : $SCREENSHOW {{PageDescription}} * The metacommand is intended to be used in a modular program when a screen surface is necessary in one or more modules. * $SCREENSHOW can only be used after $SCREENHIDE or _SCREENHIDE have been used in another program module. * If $SCREENHIDE and then $SCREENSHOW are used in the same p..."
  • 19:5219:52, 19 April 2022 diff hist +429 N $SCREENSHOWCreated page with "{{DISPLAYTITLE:_SCREENSHOW}} The _SCREENSHOW statement can be used to display the main program window in a section of code. {{PageSyntax}} : _SCREENSHOW {{PageDescription}} * _SCREENHIDE or $SCREENHIDE must be used before _SCREENSHOW or $SCREENSHOW can be used! {{PageSeeAlso}} * $SCREENHIDE, $SCREENSHOW, $CONSOLE (QB64 Metacommands) * _SCREENHIDE, _CONSOLE {{PageNavigation}}"
  • 19:5119:51, 19 April 2022 diff hist +4,658 N SCREENPRINTCreated page with "{{DISPLAYTITLE:_SCREENPRINT}} The _SCREENPRINT statement simulates typing text into a Windows focused program. {{PageSyntax}} : _SCREENPRINT {{Parameter|text$}} {{PageDescription}} * Keyword not supported in Linux or MAC versions * {{Parameter|text$}} is the text to be typed into a focused program's text entry area, one character at a time. * Set the focus to a de..."
  • 15:3415:34, 19 April 2022 diff hist +2,100 N SCREENIMAGECreated page with "{{DISPLAYTITLE:_SCREENIMAGE}} The _SCREENIMAGE function stores the current desktop image or a portion of it and returns an image handle. {{PageSyntax}} : {{Parameter|imageHandle&}} = _SCREENIMAGE({{Parameter|column1}}, {{Parameter|row1}}, {{Parameter|column2}}, {{Parameter|row2}})] {{PageDescription}} * {{Parameter|imageHandle&}} is the handle to the new image in memory that will contain the desktop screenshot. * The optional screen {{Parameter|column}} and {..."
  • 15:3415:34, 19 April 2022 diff hist +493 N SCREENICONCreated page with "{{DISPLAYTITLE:_SCREENICON}} The _SCREENICON statement can be used to minimize the main program window to the taskbar. {{PageSyntax}} : _SCREENICON {{PageDescription}} * Use _SCREENICON to minimize the main program window to the taskbar. ==Availability== * '''Version 1.000 and up'''. {{PageSeeAlso}} * $SCREENHIDE, $SCREENSHOW, $CONSOLE (QB64 Metacommands) * _SCREENHIDE, _SCREENSHOW, _CONSOLE * _SCREENICON (function)..."
  • 15:3315:33, 19 April 2022 diff hist +481 N SCREENICON (function)Created page with "{{DISPLAYTITLE:_SCREENICON (function)}} The _SCREENICON function returns true (-1) or false (0) to indicate if the window has been minimized to an icon on the taskbar. {{PageSyntax}} : {{Parameter|isMinimized%%}} = _SCREENICON {{PageDescription}} * The function returns true (-1) when the program is minimized to the task bar and false (0) when not. {{PageSeeAlso}} * _SCREENICON * _SCREENHIDE * _SCREENSHOW {{PageNaviga..."
  • 15:3315:33, 19 April 2022 diff hist +620 N SCREENHIDECreated page with "{{DISPLAYTITLE:_SCREENHIDE}} The '''_SCREENHIDE''' statement can be used to hide the main program window in a section of code. {{PageSyntax}} ::: _SCREENHIDE * Use _SCREENHIDE to get rid of the main program window until later in the program. * Use the Metacommand to get rid of the program window throughout a program or when using $CONSOLE. * _SCREENHIDE or $SCREENHIDE must be used before _SCREENSHOW or $SCREENSHOW can be used! ''See also:''..."
  • 15:3215:32, 19 April 2022 diff hist +1,348 N $SCREENHIDECreated page with "The $SCREENHIDE metacommand can be used to hide the main program window throughout a program. {{PageSyntax}} : $SCREENHIDE * $SCREENHIDE may be used at the start of a program to hide the main program window when using a console window. * The _SCREENHIDE statement must be used before _SCREENSHOW can be used in sections of a program. * '''QB64 metacommands cannot be commented out with apostrophe or [[REM]..."
  • 15:3215:32, 19 April 2022 diff hist +817 N SCREENEXISTSCreated page with "{{DISPLAYTITLE:_SCREENEXISTS}} The _SCREENEXISTS function returns true (-1) once a screen has been created. {{PageSyntax}} : {{Parameter|screenReady%%}} = _SCREENEXISTS {{PageDescription}} * Function returns true (-1) once a program screen is available to use or change. * Can be used to avoid program errors because a screen was not ready for input or alterations. ** Use before _TITLE, _SCREENMOVE and other functions that require the output window to h..."
  • 15:2715:27, 19 April 2022 diff hist +1,079 N SCREENCLICKCreated page with "{{DISPLAYTITLE:_SCREENCLICK}} The _SCREENCLICK statement simulates clicking on a pixel coordinate on the desktop screen with the left mouse button. {{PageSyntax}} : _SCREENCLICK {{Parameter|column%}}, {{Parameter|row%}}[, {{Parameter|button%}}] {{PageDescription}} * {{Parameter|column%}} is the horizontal pixel coordinate position on the screen. * {{Parameter|row%}} is the vertical pixel coordinate position on the screen. * Optional {{Parameter|button%}} can..."
  • 15:2515:25, 19 April 2022 diff hist +12,629 N PUTIMAGECreated page with "{{DISPLAYTITLE:_PUTIMAGE}} _PUTIMAGE puts an area of a source image to an area of a destination image in one operation, like GET and PUT. {{PageSyntax}} :_PUTIMAGE [STEP] [({{Parameter|dx1}}, {{Parameter|dy1}})-[STEP][({{Parameter|dx2}}, {{Parameter|dy2}})]][, {{Parameter|sourceHandle&}}][, {{Parameter|destHandle&}}][, ][STEP][({{Parameter|sx1}}, {{Parameter|sy1}})[-STEP][({{Parameter|sx2}}, {{Parameter..."
  • 15:2515:25, 19 April 2022 diff hist +2,303 N PRINTWIDTHCreated page with "{{DISPLAYTITLE:_PRINTWIDTH}}{{DISPLAYTITLE:}} The _PRINTWIDTH function returns the width in pixels of the text string specified. {{PageSyntax}} : {{Parameter|pixelWidth%}} = _PRINTWIDTH({{Parameter|textToPrint$}}[, {{Parameter|destinationHandle&}}]) {{PageDescription}} * {{Parameter|textToPrint$}} is any literal or variable STRING value. * If the {{Parameter|destinationHandle&}} is omitted, the current destination image or screen page is used...."
  • 15:2415:24, 19 April 2022 diff hist +5,910 N PRINTSTRINGCreated page with "{{DISPLAYTITLE:_PRINTSTRING}} The _PRINTSTRING statement prints text strings using graphic column and row coordinate positions. {{PageSyntax}} : _PRINTSTRING({{Parameter|column}}, {{Parameter|row}}), {{Parameter|textExpression$}}[, {{Parameter|imageHandle&}}] {{Parameters}} * {{Parameter|column}} and {{Parameter|row}} are INTEGER or LONG starting PIXEL (graphic) column and row coordinates to set text or custom fonts. * {{Parameter|textExpr..."
  • 15:2415:24, 19 April 2022 diff hist +874 N PRINTMODE (function)Created page with "{{DISPLAYTITLE:_PRINTMODE (function)}} The _PRINTMODE function returns the current _PRINTMODE status as a numerical value from 1 to 3 in graphic screen modes. {{PageSyntax}} : {{Parameter|currentPrintMode}} = _PRINTMODE[({{Parameter|imageHandle&}})] {{Parameters}} * If no {{Parameter|imageHandle&}} is given, the current destination SCREEN page or image is assumed. {{PageDescription}} * Returns a..."
  • 15:2415:24, 19 April 2022 diff hist +1,649 N PRINTMODECreated page with "{{DISPLAYTITLE:_PRINTMODE}} The _PRINTMODE statement sets the text or _FONT printing mode on a background image when using PRINT or _PRINTSTRING. {{PageSyntax}} : _PRINTMODE {''_KEEPBACKGROUND''|''_ONLYBACKGROUND''|''_FILLBACKGROUND''}[, {{Parameter|imageHandle&}}] {{Parameters}} * One of 3 mode keywords is mandatory when using this statement to deal with the text background. **''_KEEPBACKGROUND'' (mode 1): Text background transparent. Only the te..."
  • 15:2315:23, 19 April 2022 diff hist +7,353 N PRINTIMAGECreated page with "{{DISPLAYTITLE:_PRINTIMAGE}} The _PRINTIMAGE statement prints a colored image on the printer, stretching it to full paper size first. {{PageSyntax}} : _PRINTIMAGE {{Parameter|imageHandle&}} * {{Parameter|imageHandle&}} is created by the _LOADIMAGE, _NEWIMAGE or _COPYIMAGE functions. * Use a white background to save ink. {{InlineCode}}CLS , _RGB(255, 255, 255){{InlineCodeEnd}} can be used to set the white background in any SCREEN mode. *..."
  • 15:2215:22, 19 April 2022 diff hist +2,878 N PRESERVECreated page with "{{DISPLAYTITLE:_PRESERVE}} The _PRESERVE REDIM action preserves the current contents of dynamic arrays, when resizing or changing indices. {{PageSyntax}} : REDIM _PRESERVE array({{Parameter|newLowerIndex&}} [TO {{Parameter|newUpperIndex&}}]) [AS variabletype] {{PageDescription}} * REDIM or the $DYNAMIC metacommand must be used when the array is first created to be able to resize and preserve. * If _PRESERVE is not used, t..."
  • 15:2115:21, 19 April 2022 diff hist +1,988 N PIXELSIZECreated page with "{{DISPLAYTITLE:_PIXELSIZE}} The _PIXELSIZE function returns the color depth (Bits Per Pixel) of an image as 0 for text, 1 for 1 to 8 BPP or 4 for 32 bit. {{PageSyntax}} : {{Parameter|pixelSize%}} = _PIXELSIZE[({{Parameter|imageHandle&}})] {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current write page. * Returns: ** 0 if the image or screen page specified by {{Parameter|imageHandle&}} is in text mode. ** 1 if the ima..."
  • 15:2115:21, 19 April 2022 diff hist +949 N PICreated page with "{{DISPLAYTITLE: _PI}} The _PI function returns '''π''' as a _FLOAT value with an optional multiplier parameter. {{PageSyntax}} : {{Parameter|circumference}} = _PI[({{Parameter|multiplier}})] {{Parameters}} * Optional {{Parameter|multiplier}} (''2 * radius'' in above syntax) allows multiplication of the π value. {{PageDescription}} * Function can be used in to supply π or multiples in a program. * Accuracy is determined by the return variable type..."
  • 15:2015:20, 19 April 2022 diff hist +4,715 N PALETTECOLORCreated page with "{{DISPLAYTITLE:_PALETTECOLOR}} The _PALETTECOLOR statement sets the color value of a palette entry of an image using 256 color modes or less (4 or 8 BPP). {{PageSyntax}} :_PALETTECOLOR {{Parameter|attribute%}}, {{Parameter|newColor&}}[, {{Parameter|destHandle&}}] {{PageDescription}} * The {{Parameter|attribute%}} is the palette index number of the color to set, ranging from 0 to 15 (4 bit) or 0 to 255 (8 bit) color modes. * The LONG {{Parameter|newColor&}..."
  • 12:4212:42, 19 April 2022 diff hist +891 N OS$Created page with "The _OS$ function returns the operating system and QB64 compiler bit version used to compile a QB64 program. {{PageSyntax}} : {{Parameter|compilerVersion$}} = _OS$ {{PageDescription}} * Returns a STRING listing the OS as [WINDOWS], [LINUX] or [MACOSX] and the compiler bit format of [32BIT] or [64BIT]. Example: {{text|[WINDOWS][32BIT]}} * Allows a BAS program to be compiled with QB64 in Windows, Linux or MacOSX using different OS or language specifications..."
  • 12:4112:41, 19 April 2022 diff hist +1,430 N OPTION EXPLICITARRAYCreated page with "{{DISPLAYTITLE:OPTION _EXPLICITARRAY}} OPTION _EXPLICITARRAY instructs the compiler to require arrays be declared with DIM, REDIM or equivalent. {{PageSyntax}} : OPTION _EXPLICITARRAY {{PageDescription}} * Normally statements like {{InlineCode}}x(2) = 3{{InlineCodeEnd}} will implicitly create an array x(). OPTION _EXPLICITARRAY requires a preceding declaration for the array, helping to catch mistyped array and function names. * Unlike OPTION _E..."
  • 12:4112:41, 19 April 2022 diff hist +1,333 N OPTION EXPLICITCreated page with "{{DISPLAYTITLE:OPTION _EXPLICIT}} OPTION _EXPLICIT instructs the compiler to require variable declaration with DIM, REDIM or an equivalent statement. {{PageSyntax}} : OPTION _EXPLICIT {{PageDescription}} * With OPTION _EXPLICIT you can avoid typos by having QB64 immediately warn in the '''Status area''' of new variables used without previous declaration. * Enable OPTION _EXPLICIT temporarily even if a program source file doesn't contain the..."
  • 12:4012:40, 19 April 2022 diff hist +8,337 N ERROR CodesCreated page with "<center>'''QB64 Compiler Errors''': To troubleshoot compiler errors try this: recompile scripts</center> <center>'''Please report any Operating System or Compiler errors or failures you cannot fix [https://github.com/QB64Team/qb64/issues here.]'''</center> <center>'''It's a good idea to exclude "QB64.exe" from any real-time anti-virus scanning to prevent IDE Module Errors!'''</center> The following table..."
  • 12:4012:40, 19 April 2022 diff hist +941 N OPENHOSTCreated page with "{{DISPLAYTITLE:_OPENHOST}} The _OPENHOST function opens a Host which listens for new connections and returns a Host status handle. {{PageSyntax}} : {{Parameter|hostHandle}} = _OPENHOST('''"TCP/IP:8080"''') {{PageDescription}} * Creates an Illegal Function Call error if called with a string argument of the wrong syntax. * The port used in the syntax example is 8080. * Valid {{Parameter|hostHandle}} values are negative numbers. * If the syntax i..."
  • 12:3912:39, 19 April 2022 diff hist +1,144 N OPENCONNECTIONCreated page with "{{DISPLAYTITLE:_OPENCONNECTION}} The _OPENCONNECTION function opens a connection from a client that the host has detected and returns a status handle. {{PageSyntax}} :{{Parameter|connectHandle}} = _OPENCONNECTION({{Parameter|hostHandle}}) {{PageDescription}} * Valid {{Parameter|connectHandle}} values returned are negative numbers. * If the syntax is correct but they fail to begin/connect, a {{Parameter|connectHandle}} of 0 is returned. * Always check if the..." Tag: visualeditor-switched
  • 12:3812:38, 19 April 2022 diff hist +3,645 N OPENCLIENTCreated page with "The _OPENCLIENT function connects to a Host on the Internet as a Client and returns the Client status handle.{{PageSyntax}} :{{Parameter|clientHandle&}} = _OPENCLIENT('''"TCP/IP:8080:12:30:1:10"''') {{PageDescription}} *An Illegal Function Call error will be triggered if the function is called with a string argument of the wrong syntax. *Connects to a host somewhere on the internet as a client. *Valid {{Parameter|clientHandle&}} values are negativ..." Tag: visualeditor
  • 12:3712:37, 19 April 2022 diff hist −65 Main PageNo edit summary Tag: visualeditor
  • 12:3012:30, 19 April 2022 diff hist +3,663 N OFFSETCreated page with "{{DISPLAYTITLE:_OFFSET}} The _OFFSET variable type stores the location of a value in memory. The byte size varies as required by the system. {{PageSyntax}} : DIM variable AS '''_OFFSET''' {{PageDescription}} * _OFFSET types can be created as signed or _UNSIGNED at the programmer's discretion. * The type suffix for _OFFSET is '''%&''' which designates the integer value's flexible size. * Offset values are only useful when used in conjunction with _ME..."
  • 12:3012:30, 19 April 2022 diff hist +2,087 N OFFSET (function)Created page with "{{DISPLAYTITLE:_OFFSET (function)}} The _OFFSET function returns the memory offset of/within a given variable. {{PageSyntax}} : {{Parameter|offset%&}} = _OFFSET({{Parameter|variable}}) {{PageDescription}} * The {{Parameter|variable}} parameter can be any type of numerical or string variable name. * API LIBRARY parameter or type names may include '''lp, ptr''' or '''p''' which designates them as a pointer type. * _OFFSET..."
  • 12:1612:16, 19 April 2022 diff hist +487 N NUMLOCKCreated page with "{{DISPLAYTITLE: _NUMLOCK}} The _NUMLOCK statement sets the state of the Num Lock key. {{PageSyntax}} : _NUMLOCK {ON|OFF|_TOGGLE} ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _CAPSLOCK (function), _NUMLOCK (function), _SCROLLLOCK (function) * _CAPSLOCK (statement), _SCROLLLOCK (statement) {{Page..."
  • 12:1512:15, 19 April 2022 diff hist +584 N NUMLOCK (function)Created page with "{{DISPLAYTITLE: _NUMLOCK (function)}} The _NUMLOCK function returns the current state of the Num Lock key as on (-1) or off (0). {{PageSyntax}} : {{Parameter|keyStatus%%}} = _NUMLOCK ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _CAPSLOCK (function), _SCROLLLOCK (functi..."
  • 12:1512:15, 19 April 2022 diff hist +1,099 N $NOPREFIXCreated page with "The $NOPREFIX metacommand allows all QB64 functions and statements to be used without the leading underscore (_). {{PageSyntax}} :$NOPREFIX {{PageDescription}} * QB64-specific keywords are by default prefixed with an underscore, in order to differentiate them from legacy keywords inherited from QBasic/QuickBASIC 4.5. * The convention exists in order to allow older code to be loaded and compiled in QB64 without naming conflicts with existing variables or const..."
  • 12:1512:15, 19 April 2022 diff hist +5,351 N NEWIMAGECreated page with "{{DISPLAYTITLE:_NEWIMAGE}} The _NEWIMAGE function prepares a window image surface and returns the LONG handle value. {{PageSyntax}} : {{Parameter|handle&}} = _NEWIMAGE({{Parameter|width&}}, {{Parameter|height&}}[, {''0''|''1''|''2''|''7''|''8''|''9''|''10''|''11''|''12''|''13''|''256''|''32''}]) {{Parameters}} * Minimum LONG screen dimensions are {{Parameter|width&}} >= 1, {{Parameter|height&}} >= 1 measured in pixels as INTEGER or LONG va..."
  • 12:1412:14, 19 April 2022 diff hist +2,657 N MOUSEYCreated page with "{{DISPLAYTITLE:_MOUSEY}} The _MOUSEY function returns the current vertical (row) mouse cursor position when read after _MOUSEINPUT. {{PageSyntax}} : {{Parameter|pixelRow%}} = _MOUSEY {{PageDescription}} * SCREEN 0 returns the INTEGER vertical text row position (from build 20170817/62 onward); older versions return a SINGLE vertical text row position. Use INTEGER variables to avoid floating decimal returns. * Graphic screen modes 1, 2 and 7..."
  • 12:1412:14, 19 April 2022 diff hist +2,451 N MOUSEXCreated page with "{{DISPLAYTITLE:_MOUSEX}} The _MOUSEX function returns the current horizontal (column) mouse cursor position when read after _MOUSEINPUT. {{PageSyntax}} : {{Parameter|pixelColumn%}} = _MOUSEX {{PageDescription}} * SCREEN 0 returns the INTEGER horizontal text column position (from build 20170817/62 onward); older versions return a SINGLE horizontal text column position. Use INTEGER variables to avoid floating decimal returns. * Graphic scree..."
  • 12:1312:13, 19 April 2022 diff hist +2,601 N MOUSEWHEELCreated page with "{{DISPLAYTITLE:_MOUSEWHEEL}} The _MOUSEWHEEL function returns a positive or negative INTEGER value indicating mouse scroll events since the last read of _MOUSEINPUT. {{PageSyntax}} : {{Parameter|scrollAmount%}} = _MOUSEWHEEL {{PageDescription}} * Returns -1 when scrolling up and 1 when scrolling down with 0 indicating no movement since last read. * After an event has been read, the value resets to 0 automatically so cumulative position values must be..."
  • 12:1312:13, 19 April 2022 diff hist +2,368 N MOUSESHOWCreated page with "{{DISPLAYTITLE:_MOUSESHOW}} The _MOUSESHOW statement displays the mouse cursor and can change its shape. {{PageSyntax}} : _MOUSESHOW [{{Parameter|cursorShape$}}] {{PageDescription}} * Simply use the statement whenever _MOUSEHIDE has been used previously. * In '''version 1.000 and up''' the following {{Parameter|cursorShape$}} can be displayed: ::_MOUSESHOW "LINK" will display an upward pointing hand cursor used to denote hypertext ::_MOUSESHOW "TEXT" will..."
  • 12:1112:11, 19 April 2022 diff hist +1,744 N MOUSEMOVEMENTYCreated page with "{{DISPLAYTITLE:_MOUSEMOVEMENTY}} The _MOUSEMOVEMENTY function returns the relative vertical position of the mouse cursor as positive or negative values. {{PageSyntax}} : {{Parameter|verticalMove}} = _MOUSEMOVEMENTY * Returns the relative vertical cursor pixel position compared to the previous cursor position. Negative values are up moves. * '''Note:''' A _MOUSESHOW statement will disable _MOUSEMOVEMENTX or _MOUSEMOVEMENTY relative mouse movement..."
  • 12:1112:11, 19 April 2022 diff hist +2,324 N MOUSEMOVEMENTXCreated page with "{{DISPLAYTITLE:_MOUSEMOVEMENTX}} The _MOUSEMOVEMENTX function returns the relative horizontal position of the mouse cursor as positive or negative values. {{PageSyntax}} : ''horizontalMove'' = _MOUSEMOVEMENTX * Returns the relative horizontal cursor pixel position compared to the previous cursor position. Negative values are moves to the left. * '''Note:''' A _MOUSESHOW statement will disable _MOUSEMOVEMENTX or _MOUSEMOVEMENTY relative mouse mo..."
  • 12:1012:10, 19 April 2022 diff hist +2,383 N MOUSEMOVECreated page with "{{DISPLAYTITLE:_MOUSEMOVE}} The _MOUSEMOVE statement moves the mouse pointer to a new position on the screen as determined by the column and row coordinates. {{PageSyntax}} :_MOUSEMOVE {{Parameter|column%}}, {{Parameter|row%}} {{Parameters}} * {{Parameter|column%}} is the horizontal pixel coordinate to place the mouse pointer and can be any value from 0 to _WIDTH(0) - 1. * {{Parameter|row%}} is the vertical pixel position to place the m..."
  • 12:1012:10, 19 April 2022 diff hist +3,345 N MOUSEINPUTCreated page with "{{DISPLAYTITLE:_MOUSEINPUT}} The _MOUSEINPUT function is used to monitor any new mouse positions, button presses or movements of the scroll wheel. Must be called before other mouse information becomes available. {{PageSyntax}} :{{Parameter|infoExists%%}} = _MOUSEINPUT {{PageDescription}} * Returns -1 if new mouse information is available, otherwise it returns 0. * Must be called before reading any of the other mouse functions. The function will not miss any m..."
  • 12:1012:10, 19 April 2022 diff hist +205 N MOUSEHIDECreated page with "{{DISPLAYTITLE:_MOUSEHIDE}} The _MOUSEHIDE statement hides the mouse cursor. {{PageSyntax}} : _MOUSEHIDE {{PageSeeAlso}} * _MOUSESHOW * _MOUSEINPUT * _MOUSEMOVE {{PageNavigation}}"
  • 12:0912:09, 19 April 2022 diff hist +7,818 N MOUSEBUTTONCreated page with "{{DISPLAYTITLE:_MOUSEBUTTON}} The _MOUSEBUTTON function returns the button status of a specified mouse button when read after _MOUSEINPUT. {{PageSyntax}} : {{Parameter|buttonStatus%%}} = _MOUSEBUTTON({{Parameter|buttoNumber}}) {{Parameters}} * INTEGER {{Parameter|buttoNumber}} designates the mouse button to read (See _DEVICES for more than 3). ** 1 = Left mouse button ** 2 = Right mouse button ** 3 = Center or scroll button {{PageDescription}}..."
  • 12:0912:09, 19 April 2022 diff hist +1,174 N MK$Created page with "{{DISPLAYTITLE:_MK$}}{{DISPLAYTITLE:}} The _MK$ function can convert any numerical type into an ASCII STRING value that can be converted back using _CV. {{PageSyntax}} :{{Parameter|string_value$}} = _MK$({{Parameter|numericalType}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalType}} is any QB64 numerical type: INTEGER, LONG, SINGLE, DOUBLE, _INTEGER64, _BYTE or _BIT. * Whole integer values can be..."
  • 12:0812:08, 19 April 2022 diff hist +2,924 N SCREENMOVECreated page with "{{DISPLAYTITLE:_SCREENMOVE}} The _SCREENMOVE statement positions the program window on the desktop using designated coordinates. {{PageSyntax}} : _SCREENMOVE {{{Parameter|column&}}, {{Parameter|row&}}|_MIDDLE} {{Parameters}} * Positions the program window on the desktop using the {{Parameter|column&}} and {{Parameter|row&}} pixel coordinates for the upper left corner. * '''_MIDDLE''' can be used instead to automatically center the program window on the deskto..."
  • 12:0712:07, 19 April 2022 diff hist +2,164 N MEMPUTCreated page with "{{DISPLAYTITLE:_MEMPUT}} The _MEMPUT statement writes data to a portion of a designated memory block at an OFFSET position. {{PageSyntax}} : _MEMPUT {{Parameter|memoryBlock}}, {{Parameter|bytePosition}}, {{Parameter|sourceVariable}} [AS {{Parameter|type}}] {{Parameters}} * {{Parameter|memoryBlock}} is a _MEM variable type memory block name created by _MEMNEW or the _MEM function. * {{Parameter|bytePosition}} is the {{Parameter|..."
  • 12:0712:07, 19 April 2022 diff hist +2,016 N MEMNEWCreated page with "{{DISPLAYTITLE:_MEMNEW}} The _MEMNEW function allocates new memory and returns a _MEM memory block referring to it. {{PageSyntax}} : {{Parameter|memoryBlock}} = _MEMNEW({{Parameter|byteSize}}) {{Parameters}} * The {{Parameter|byteSize}} parameter is the desired byte size of the memory block based on the variable type it will hold. {{PageDescription}} * The {{Parameter|memoryBlock}} value created holds the elements .OFFSET, .SIZE, .TYPE and .ELEMENTS..."
  • 12:0612:06, 19 April 2022 diff hist +4,260 N MEMIMAGECreated page with "{{DISPLAYTITLE:_MEMIMAGE}} The _MEMIMAGE function returns a _MEM value referring to an image's memory using a designated image handle. {{PageSyntax}} : {{Parameter|imageBlock}} = _MEMIMAGE[({{Parameter|imageHandle&}})] {{Parameters}} * The {{Parameter|imageBlock}} _MEM type variable holds the read-only elements .OFFSET, .SIZE, .TYPE and .ELEMENTSIZE. * If the optional {{Parameter|imageHandle&}} isn't passed, it is assumed to be the current _DESTin..."
  • 12:0612:06, 19 April 2022 diff hist +2,285 N MEMGET (function)Created page with "{{DISPLAYTITLE:_MEMGET (function)}} The _MEMGET function returns a value from a specific memory block name at the specified OFFSET using a certain variable type. {{PageSyntax}} : {{Parameter|returnValue}} = _MEMGET({{Parameter|memoryBlock}}, {{Parameter|bytePosition}}, {{Parameter|variableType}}) {{Parameters}} * Returns a value of the {{Parameter|variableType}} designated. The holding variable must match that TYPE. * {{Parameter|memoryBlock}} is a _MEM..."
  • 12:0512:05, 19 April 2022 diff hist +2,126 N MEMGETCreated page with "{{DISPLAYTITLE:_MEMGET}} The _MEMGET statement reads a portion of a memory block at an OFFSET position into a variable, array or user defined type. {{PageSyntax}} : _MEMGET {{Parameter|memoryBlock}}, {{Parameter|bytePosition}}, {{Parameter|destinationVariable}} * {{Parameter|memoryBlock}} is a _MEM variable type memory block name created by _MEMNEW or the _MEM function. * {{Parameter|bytePosition}} is the {{Parameter|memoryBlock}}...."
  • 12:0512:05, 19 April 2022 diff hist +867 N MEMFREECreated page with "{{DISPLAYTITLE:_MEMFREE}} The _MEMFREE statement frees the designated memory block _MEM value and must be used with all memory functions. {{PageSyntax}} : _MEMFREE {{Parameter|memoryVariable}} {{Parameters}} * ALL designated _MEM type {{Parameter|memoryVariable}} values must be freed to conserve memory when they are no longer used or needed. {{PageDescription}} * Since _MEM type variables cannot use a suffix, use DIM {{Parameter|memoryVaria..."
  • 12:0412:04, 19 April 2022 diff hist +1,701 N MEMFILLCreated page with "{{DISPLAYTITLE:_MEMFILL}} The _MEMFILL statement converts a value to a specified type, then fills memory with that type including any non-whole remainder. {{PageSyntax}} : _MEMFILL {{Parameter|memoryBlock}}, {{Parameter|memoryBlock.OFFSET}}, {{Parameter|fillBytes}}, {{Parameter|value}} [AS {{Parameter|variableType}}] {{Parameters}} * The {{Parameter|memoryBlock}} _MEM memory block is the block referenced to be filled. * {{Parameter|memoryBlock.OFFSET}} is..."
  • 12:0412:04, 19 April 2022 diff hist +857 N MEMEXISTSCreated page with "{{DISPLAYTITLE:_MEMEXISTS}} The _MEMEXISTS function returns true (-1) if the memory block variable name specified exists in memory and false (0) if it does not. {{PageSyntax}} : {{Parameter|result}} = _MEMEXISTS({{Parameter|memBlock}}) {{PageDescription}} * The {{Parameter|memBlock}} variable name must have been created using DIM memBlock AS _MEM type (DIM. * The function verifies that the memory variable exists in memory before using a passed..."
  • 12:0412:04, 19 April 2022 diff hist +4,231 N MEMELEMENTCreated page with "{{DISPLAYTITLE:_MEMELEMENT}} The _MEMELEMENT function returns a _MEM block referring to a variable's memory, but not past it. {{PageSyntax}} : {{Parameter|memoryBlock}} = _MEMELEMENT({{Parameter|referenceVariable}}) * The {{Parameter|referenceVariable}} parameter designates the existing variable name using the memory block. * _MEMELEMENT is the same as _MEM but in an array it returns the specifications of an element, not the entire array. * All values..."
  • 12:0312:03, 19 April 2022 diff hist +2,870 N MEMCOPYCreated page with "{{DISPLAYTITLE:_MEMCOPY}} The _MEMCOPY statement copies a block of bytes from one memory offset to another offset in memory. {{PageSyntax}} : _MEMCOPY {{Parameter|sourceBlock}}, {{Parameter|sourceBlock.OFFSET}}, {{Parameter|sourceBlock.SIZE}} TO {{Parameter|destBlock}}, {{Parameter|destBlock.OFFSET}} {{Parameters}} * {{Parameter|sourceBlock}} is the source memory block name created AS _MEM. * {{Parameter|sourceBlock.OFFSET}} is the dot _OFFSET wi..."
  • 12:0312:03, 19 April 2022 diff hist +6,885 N MEMCreated page with "{{DISPLAYTITLE:_MEM}} The _MEM variable type can be used when working with memory blocks. It has no variable type suffix. {{PageSyntax}} : DIM m AS _MEM {{PageDescription}} ''Variable TYPE:'' * Memory DOT values are actually part of the built in memory variable type in QB64. The following TYPE is built in: {{WhiteStart}}TYPE memory_type OFFSET AS _OFFSET 'start location of block(changes with byte position) SIZE AS _OFFSET..."
  • 12:0212:02, 19 April 2022 diff hist +2,173 N MEM (function)Created page with "{{DISPLAYTITLE:_MEM (function)}} The _MEM function returns a _MEM block referring to the largest possible continuous memory region beginning at a variable's offset. {{PageSyntax}} : {{Parameter|memoryBlock}} = _MEM({{Parameter|referenceVariable}}) ===Unsecure syntax=== : {{Parameter|memoryBlock}} = _MEM({{Parameter|offset}}, {{Parameter|byteSize}}) {{Parameters}} * The {{Parameter|memoryBlock}} created will hold the {{Parameter|referenceVariable}} or a..."
  • 12:0212:02, 19 April 2022 diff hist +1,365 N MAPUNICODE (function)Created page with "{{DISPLAYTITLE:_MAPUNICODE (function)}} The _MAPUNICODE function returns the Unicode (UTF-32) code point value of a mapped ASCII character code. {{PageSyntax}} : {{Parameter|utfValue&}} = _MAPUNICODE({{Parameter|asciiCode%}}) {{PageDescription}} * UTF-32 values have 4-byte encoding so the return variable should be LONG. * The {{Parameter|asciiCode%}} can be any INTEGER value from 0 to 255. * Returns can be used to verify or catalog the present..."
  • 12:0112:01, 19 April 2022 diff hist +2,758 N MAPUNICODECreated page with "{{DISPLAYTITLE:_MAPUNICODE}} The _MAPUNICODE statement maps a Unicode value to an ASCII character code value. {{PageSyntax}} : _MAPUNICODE {{Parameter|unicode&}} '''TO''' {{Parameter|asciiCode%}} * The LONG {{Parameter|unicode&}} value is a hexadecimal or decimal code value from a Unicode Code Page. * The {{Parameter|asciiCode%}} INTEGER parameter is any ASCII or Extended code value from 0 to 255. * Use the Un..."
  • 12:0112:01, 19 April 2022 diff hist +29,668 N MAPTRIANGLECreated page with "{{DISPLAYTITLE:_MAPTRIANGLE}} The _MAPTRIANGLE statement maps a triangular portion of an image onto a destination image or screen page. {{PageSyntax}} ===2D drawing=== :_MAPTRIANGLE [{_SEAMLESS}] '''('''{{Parameter|sx1}}''',''' {{Parameter|sy1}}''')-('''{{Parameter|sx2}}''',''' {{Parameter|sy2}}''')-('''{{Parameter|sx3}}''',''' {{Parameter|sy3}}'''),''' {{Parameter|source&}} '''TO ('''{{Parameter|dx1}}''',''' {{Parameter|dy1}}''')-('''{{Parameter|dx2}}''',''' {..."
  • 12:0012:00, 19 April 2022 diff hist +4,034 N LOADIMAGECreated page with "{{DISPLAYTITLE:_LOADIMAGE}} The _LOADIMAGE function loads an image into memory and returns valid LONG image handle values that are less than -1. {{PageSyntax}} :{{Parameter|handle&}} = _LOADIMAGE({{Parameter|filename$}}[, {{Parameter|mode%}}]) {{Parameters}} *{{Parameter|filename$}} is literal or variable STRING file name value. *Optional {{Parameter|mode%}} INTEGER values can be: **32 = 32-bit **33 = hardware image {{PageDescription}} *Var..."
  • 12:0012:00, 19 April 2022 diff hist +7,827 N LOADFONTCreated page with "{{DISPLAYTITLE:_LOADFONT}} The _LOADFONT function loads a TrueType font (.TTF) or an OpenType font (.OTF) file in a specific size and style and returns a LONG font handle. {{PageSyntax}} : {{Parameter|handle&}} = _LOADFONT({{Parameter|fontFileName$}}, {{Parameter|size%}}[, "{MONOSPACE|, BOLD|, ITALIC|, UNDERLINE|, UNICODE|, DONTBLEND}"]) {{PageDescription}} * The assigned LONG font {{Parameter|handle&}} variable return value designates a font style to..."
  • 11:5911:59, 19 April 2022 diff hist +1,711 N LIMITCreated page with "{{DISPLAYTITLE:_LIMIT}} The _LIMIT statement sets the loop repeat rate of a program to so many per second, relinquishing spare CPU cycles to other applications. {{PageSyntax}} : _LIMIT {{Parameter|framesPerSecond!}} * The {{Parameter|framesPerSecond!}} SINGLE parameter value adjusts the loops per second of a program loop. '''Do not use negative values.''' * The loop code is executed before the loop is delayed. Loop cycles below once per second may delay..."
  • 11:5811:58, 19 April 2022 diff hist +1,675 N LASTWHEELCreated page with "{{DISPLAYTITLE:_LASTWHEEL}} The _LASTWHEEL function returns the number of wheels a specified number INPUT device on your computer has. {{PageSyntax}} : {{Parameter|wheelCount%}} = _LASTWHEEL({{Parameter|deviceNumber}}) * Returns the number of wheels that can be used on a specified device number within the number of _DEVICES found. * A valid number can be sent to the _WHEEL function to find any relative positive or negative wheel movements. * The devi..."
  • 06:1706:17, 19 April 2022 diff hist +1,746 N LASTBUTTONCreated page with "{{DISPLAYTITLE:_LASTBUTTON}} The _LASTBUTTON function returns the number of buttons a specified INPUT device on your computer has. {{PageSyntax}} : {{Parameter|buttonCount%}} = __LASTBUTTON({{Parameter|deviceNumber}}) * Returns the number of buttons that can be read on a specified device number within the number of _DEVICES found. * A valid number can be sent to the _BUTTON or _BUTTONCHANGE function to find any button events. * The specific device..."
  • 06:1606:16, 19 April 2022 diff hist +1,647 N LASTAXISCreated page with "{{DISPLAYTITLE:_LASTAXIS}} The _LASTAXIS function returns the number of axis a specified number INPUT device on your computer has. {{PageSyntax}} : {{Parameter|axisCount%}} = _LASTAXIS({{Parameter|deviceNumber}}) {{PageDescription}} * Returns the number of axis that can be read on a specified device number within the number of _DEVICES found. * A valid number can be sent to the _AXIS function to find any relative axis movements. * The devices are list..."
  • 06:1606:16, 19 April 2022 diff hist +1,112 N $LETCreated page with "$LET is precompiler command, which is now usable by modern day cavemen to help include and exclude which sections of code compiles in their program based on OS/bit-size or other predefined conditions. {{PageSyntax}} : $LET variable = expression {{PageDescription}} * Unlike LET, $LET is not optional. * $LET a = 12 sets a precompiler variable "a" to the value of 12. This variable is only valid for the precompiler itself and does nothing to affect..."
  • 06:1506:15, 19 April 2022 diff hist +9,577 N KEYDOWNCreated page with "{{DISPLAYTITLE:_KEYDOWN}} The '''_KEYDOWN''' function returns whether modifying keys like CTRL, ALT, SHIFT, and any other keys are pressed. {{PageSyntax}} :: return% = '''_KEYDOWN('''''code&''''')''' * The ''return'' value is -1 if a specified key is pressed or 0 if it was not pressed. It can be used to monitor key combinations. * The POSITIVE LONG ''code'' value can be from any function key that needs to be monitored in a key press combination. * Unicode refer..."
  • 06:1406:14, 19 April 2022 diff hist +6,921 N KEYHITCreated page with "{{DISPLAYTITLE:_KEYHIT}} The _KEYHIT function returns ASCII one and two byte, OpenGL Virtual Key and Unicode keyboard key press codes. {{PageSyntax}} :{{Parameter|keycode&}} = _KEYHIT {{PageDescription}} * Return values range up to &H40000000 so use a LONG or _INTEGER64 variable type. See the _KEYDOWN code list: :* 0-255: ASCII values (Refer to [http://en.wikipedia.org/wiki/Code_page_437 CP437]). :* 256-65535: ASCII#Two_Byte_Codes|2-byte..."
  • 06:1406:14, 19 April 2022 diff hist +2,753 N KEYCLEARCreated page with "{{DISPLAYTITLE:_KEYCLEAR}} _KEYCLEAR clears all keyboard input buffers. {{PageSyntax}} :_KEYCLEAR {{Parameter|buffer&}} {{Parameters}} *{{Parameter|buffer&}} indicates the buffer to be cleared: ** 1 - Clear the regular keyboard buffer, as used by all input command except the following: _KEYHIT, _KEYDOWN, INP(&H60. This is the same as the the emulated BIOS keyboard buffer, so legacy code reading from it via PEEK/POKE/CALL ABSOLUTE will also be affected. ** 2 -..."
  • 06:1306:13, 19 April 2022 diff hist +1,030 N INTEGER64Created page with "{{DISPLAYTITLE:_INTEGER64}} _INTEGER64 is an 8 byte number type definition that can hold whole numerical values. {{PageSyntax}} : DIM {{Parameter|variable}} AS _INTEGER64 {{PageDescription}} * Can be used in 32 or 64 bit computers. * Signed numerical values can range from -9223372036854775808 to 9223372036854775807. * _UNSIGNED _INTEGER64 values range from 0 to 18446744073709551615 on 64 bit computers. * Variable type suffix is '''&&''' or ''..."
  • 06:1306:13, 19 April 2022 diff hist +3,012 N INSTRREVCreated page with "{{DISPLAYTITLE:_INSTRREV}} The _INSTRREV function searches for a substring inside another string, but unlike INSTR it searches from right to left. {{PageSyntax}} : {{Parameter|position%}} = _INSTRREV([{{Parameter|start%}},] {{Parameter|baseString$}}, {{Parameter|subString$}}) {{Parameters}} * The optional literal or variable INTEGER {{Parameter|start%}} indicates where in the {{Parameter|baseString$}} the search must start, counted from the left. * T..."
  • 06:1206:12, 19 April 2022 diff hist +1,737 N INFLATE$Created page with "{{DISPLAYTITLE:_INFLATE$}} The _INFLATE$ function decompresses a string compressed by the _DEFLATE$ function. {{PageSyntax}} :{{Parameter|result$}} = _INFLATE$({{Parameter|stringToDecompress$[, originalSize&]}}) {{PageDescription}} * {{Parameter|result$}} will contain the original version of {{Parameter|stringToDecompress$}}. * Optional parameter {{Parameter|originalSize&}} can be used if the original size of the uncompressed data is known befo..."
  • 06:1206:12, 19 April 2022 diff hist +1,457 N INCLERRORLINECreated page with "{{DISPLAYTITLE:_INCLERRORLINE}} The _INCLERRORFILE$ function returns the line number in an $INCLUDE file that caused the most recent error. {{PageSyntax}} : {{Parameter|errline&}} = _INCLERRORLINE {{PageDescription}} * If the last error occurred in the main module, _INCLERRORLINE returns 0. * By checking _INCLERRORLINE you can report exactly what line inside an included module caused the last error. ==Availability== * '''Version 1.1 and up'''. {{Pa..."
  • 06:1206:12, 19 April 2022 diff hist +1,380 N INCLERRORFILE$Created page with "{{DISPLAYTITLE:_INCLERRORFILE$}} The _INCLERRORFILE$ function returns the name of the original source code $INCLUDE module that caused the most recent error. {{PageSyntax}} : {{Parameter|errfile$}} = _INCLERRORFILE$ {{PageDescription}} If the last error occurred in the main module, _INCLERRORFILE$ returns an empty string. ==Availability== * '''Version 1.1 and up'''. {{PageExamples}} ''Example:'' {{CodeStart}} {{Cl|ON ERROR}} {{Cl|GOTO}} DebugLi..."
  • 06:1106:11, 19 April 2022 diff hist +7,136 N ICONCreated page with "{{DISPLAYTITLE:_ICON}} The _ICON statement uses an image handle from _LOADIMAGE for the program header and icon image in the OS. {{PageSyntax}} : _ICON [{{Parameter|mainImageHandle&}}[, {{Parameter|smallImageHandle&}}]] {{Parameters}} * {{Parameter|mainImageHandle&}} is the LONG handle value of the OS icon and title bar image pre-loaded with _LOADIMAGE when used alone. * {{Parameter|smallImageHandle&}} is the LONG handle value of a different..."
  • 06:1106:11, 19 April 2022 diff hist +3,139 N $IFCreated page with "'''$IF''' is precompiler metacommand, which determines which sections of code inside its blocks are included into the final code for compliing. {{PageSyntax}} :$IF variable = expression THEN :. :$ELSEIF variable = expression THEN :. :$ELSE :. :$END IF * $IF is the start of a precompiler code block which includes or excludes sections of code from being compiled. * There is no single line $IF statement. $IF must be in a valid $IF THEN....."
  • 06:0506:05, 19 April 2022 diff hist +4,245 N FULLSCREEN (function)Created page with "{{DISPLAYTITLE:_FULLSCREEN (function)}} The _FULLSCREEN function returns the present full screen mode setting of the screen window. {{PageSyntax}} : {{Parameter|full%}} = _FULLSCREEN {{PageDescription}} * ''Function returns:'' ** 0 = _OFF (any positive non-0 value means fullscreen is on) ** 1 = _STRETCH ** 2 = _SQUAREPIXELS * It '''cannot''' be assumed that calling _FULLSCREEN will succeed. It cannot be assumed that the type of full..."
  • 06:0506:05, 19 April 2022 diff hist +5,048 N FULLSCREENCreated page with "{{DISPLAYTITLE:_FULLSCREEN}} The _FULLSCREEN statement attempts to make the program window fullscreen. {{PageSyntax}} :_FULLSCREEN [''_STRETCH | _SQUAREPIXELS| _OFF''][, ''_SMOOTH''] {{Parameters}} * {{Parameter|_STRETCH}} default first choice attempts to mimic QBasic's full screens if possible. _FULLSCREEN (function) returns 1. * {{Parameter|_SQUAREPIXELS}} alternate choice enlarges the pixels into squares on some monitors. _FULLSCREEN (function)|_FUL..."
  • 06:0406:04, 19 April 2022 diff hist +584 N FREETIMERCreated page with "{{DISPLAYTITLE:_FREETIMER}} The _FREETIMER function returns a free TIMER number for multiple ON TIMER(n) events. {{PageSyntax}} : {{Parameter|timerhandle%}} = _FREETIMER {{PageDescription}} * QB64 can use an unlimited number of ON TIMER (number, seconds!) event INTEGER values at once. * Every time _FREETIMER is called the INTEGER value returned will increase by one, starting at 1, whether it is used or not. * Store multiple returns in differe..."
  • 06:0406:04, 19 April 2022 diff hist +2,067 N FREEIMAGECreated page with "{{DISPLAYTITLE:_FREEIMAGE}} The '''_FREEIMAGE''' statement releases the designated file image created by the _LOADIMAGE, _NEWIMAGE or _COPYIMAGE functions from memory when they are no longer needed. {{PageSyntax}} : _FREEIMAGE [{{Parameter|handle&}}] {{PageDescription}} *If {{Parameter|handle&}} is omitted, the current destination image is freed from memory. *Freeing the destination image or source image will result in the display page being selected..."
  • 06:0406:04, 19 April 2022 diff hist +4,123 N FREEFONTCreated page with "{{DISPLAYTITLE:_FREEFONT}} The _FREEFONT statement frees a font handle that was created by _LOADFONT. {{PageSyntax}} :_FREEFONT ({{Parameter|fontHandle&}}) {{PageDescription}} * Unloads fonts that are no longer in use or needed in order to free program memory and resources. * You cannot free a font which is in use. Change the font to a QB64 default font size before freeing the handle (see example below). * Predefined '''QB64''' font handle numbers can be..."
  • 06:0306:03, 19 April 2022 diff hist +954 N FONTWIDTHCreated page with "{{DISPLAYTITLE:_FONTWIDTH}} The _FONTWIDTH function returns the font width of a MONOSPACE font handle created by _LOADFONT. {{PageSyntax}} :{{Parameter|pixelWidth%}} = _FONTWIDTH[({{Parameter|fontHandle&}})] * Returns the character width of the last font used if a handle is not specified. * '''Variable width fonts always return {{Parameter|pixelWidth%}} = 0.''' Even fixed width fonts return 0 unless the "MONOSPACE" style option is used. * QB6..."
  • 06:0306:03, 19 April 2022 diff hist +2,056 N FONTHEIGHTCreated page with "{{DISPLAYTITLE:_FONTHEIGHT}} The _FONTHEIGHT function returns the font height of a font handle created by _LOADFONT. {{PageSyntax}} :{{Parameter|pixelHeight%}} = _FONTHEIGHT[({{Parameter|fontHandle&}})] {{PageDescription}} * Returns the height of the last font used if a handle is not designated. * If no font is set it returns the current screen mode's text block height. {{PageExamples}} ''Example:'' Finding the font or text block size of pri..."
  • 06:0306:03, 19 April 2022 diff hist +499 N FONT (function)Created page with "{{DISPLAYTITLE:_FONT (function)}} The _FONT function retrieves the font handle from the specified image handle or the current _DESTination page's font. {{PageSyntax}} :{{Parameter|fontHandle&}} = _FONT[({{Parameter|imageHandle&}})] {{PageDescription}} *imageHandle& is the handle to the image which you want to retrieve the font from. If not specified, it is assumed to be the current _DESTination page. {{PageSeeAlso}} *_LOADFONT, _FONT *_DES..." current
  • 06:0206:02, 19 April 2022 diff hist +3,496 N FONTCreated page with "{{DISPLAYTITLE:_FONT}} The _FONT statement sets the current _LOADFONT function font handle to be used by PRINT. {{PageSyntax}} : _FONT {{Parameter|fontHandle&}}[, {{Parameter|imageHandle&}}] {{Parameters}} * {{Parameter|fontHandle&}} is the handle retrieved from _LOADFONT function, the _FONT function, or a predefined handle. * If the image handle is omitted the current image _DESTination is used. Zero can designate the cu..."
  • 06:0206:02, 19 April 2022 diff hist +1,420 N FLOATCreated page with "{{DISPLAYTITLE:_FLOAT}} '''_FLOAT''' numerical values offer the maximum floating-point decimal precision available using '''QB64'''. {{PageSyntax}} ::DIM {{Parameter|variable}} AS _FLOAT {{PageDescription}} * '''QB64''' always allocates 32 bytes to store this value. * It is safe to assume this value is at least as precise as DOUBLE. * Under the current implementation it is stored in a 10-byte floating point variable. * _FLOAT variables can also use..."
  • 06:0206:02, 19 April 2022 diff hist +1,967 N FINISHDROPCreated page with "{{DISPLAYTITLE:_FINISHDROP}} The _FINISHDROP statement resets _TOTALDROPPEDFILES and clears the _DROPPEDFILE list of items (files/folders). {{PageSyntax}} : _FINISHDROP {{PageDescription}} * When using _DROPPEDFILE with an index (which goes from 1 to _TOTALDROPPEDFILES), you must call _FINISHDROP after you finish working with the list in order to prepare for the next drag/drop operation. * '''Keywords_currently_not_supported_by_QB64#Keywo..."
  • 06:0106:01, 19 April 2022 diff hist +1,068 N FILEEXISTSCreated page with "{{DISPLAYTITLE:_FILEEXISTS}} The '''_FILEEXISTS''' function determines if a designated file name exists and returns true (-1) or false (0). {{PageSyntax}} : {{Parameter|theFileExists%}} = _FILEEXISTS({{Parameter|filename$}}) {{PageDescription}} * The {{Parameter|filename$}} parameter can be a literal or variable string value that can include a path. * The function returns -1 when a file exists and 0 when it does not. * The function reads the system inf..."
  • 06:0106:01, 19 April 2022 diff hist +1,259 N HYPOTCreated page with "{{DISPLAYTITLE:_HYPOT}} The _HYPOT function returns the hypotenuse of a right-angled triangle whose legs are x and y. {{PageSyntax}} : {{Parameter|result!}} = _HYPOT({{Parameter|x}}, {{Parameter|y}}) {{Parameters}} * {{Parameter|x}} and {{Parameter|y}} are the floating point values corresponding to the legs of a right-angled (90 degree) triangle for which the hypotenuse is computed. {{PageDescription}} * The function returns what would be the square root of..."
  • 06:0106:01, 19 April 2022 diff hist +8,996 N SHELLCreated page with "The SHELL statement allows a program to run external programs or command line statements in Windows, macOS and Linux. {{PageSyntax}} : SHELL [{{Parameter|DOSCommand$}}] : SHELL ['''_DONTWAIT'''] ['''_HIDE'''] [{{Parameter|DOSCommand$}}] {{PageDescription}} * If the ''DOSCommand$'' STRING parameter isn't used, the "command console" is opened and execution is halted until the user closes it manually. * If _DONTWAIT is used, the '''QB64''' program do..."
  • 06:0006:00, 19 April 2022 diff hist +2,509 N HIDECreated page with "{{DISPLAYTITLE:_HIDE}} The _HIDE action is used to hide the console window opened by a SHELL statement. {{PageSyntax}} : SHELL ['''_HIDE'''] {{Parameter|StringCommandLine$}} {{PageDescription}} * Allows any command line window to be hidden from view without affecting the program. * _HIDE must be used when sending ("piping") screen information to a file. * '''Note:''' Some commands may not work without adding CMD /C to the start of the command line...."
  • 06:0006:00, 19 April 2022 diff hist +1,100 N HEIGHTCreated page with "{{DISPLAYTITLE:_HEIGHT}} The _HEIGHT function returns the height of an image handle or of the current write page. {{PageSyntax}} : {{Parameter|columns&}} = _HEIGHT[({{Parameter|imageHandle&}})] {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it's assumed to be the handle of the current SCREEN or write page. * To get the height of the current program screen window use zero for the handle value or nothing: {{Parameter|lines&}} = [..."
  • 06:0006:00, 19 April 2022 diff hist +734 N GREEN32Created page with "{{DISPLAYTITLE:_GREEN32}} The _GREEN32 function returns the green component intensity of a 32-bit image or surface color. {{PageSyntax}} : green32color& = _GREEN32({{Parameter|rgbaColor&}}) {{PageDescription}} * {{Parameter|rgbaColor&}} is the 32-bit ''RGBA'' color value to retrieve the green component intensity value from. * ''RGBA'' color values are returned by the _PALETTECOLOR, POINT, _RGB, _RGB32, _RGBA or _..."
  • 05:5905:59, 19 April 2022 diff hist +1,445 N GREENCreated page with "{{DISPLAYTITLE:_GREEN}} The _GREEN function returns the palette index or the green component intensity of a 32-bit image color. {{PageSyntax}} : {{Parameter|greenIntensity&}} = _GREEN({{Parameter|rgbaColorIndex&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * {{Parameter|rgbaColorIndex&}} is the ''RGBA'' color value or palette index of the color to retrieve the green component intensity from. * The LONG intensity value returned ranges from 0 (no in..."
  • 05:5905:59, 19 April 2022 diff hist +2,752 N EXIT (function)Created page with "{{DISPLAYTITLE:_EXIT (function)}} The _EXIT function prevents the user from closing a program and indicates if a user has clicked the close button in the window title ('''X''' button) or used CTRL + BREAK. {{PageSyntax}} :{{Parameter|exitSignal%}} = _EXIT {{PageDescription}} * Once the _EXIT function is used, the user can no longer manually exit the program until it is ended with END or SYSTEM. * _EXIT returns any exit requests made after the..."
  • 05:5805:58, 19 April 2022 diff hist +1,149 N $EXEICONCreated page with "'''$EXEICON''' pre-compiler metacommand embeds a designated icon file into the compiled EXE file to be viewed in Windows Explorer. {{PageSyntax}} : $EXEICON:'{{Parameter|iconfile.ico}}' {{Parameters}} * '{{Parameter|iconfile.ico}}' is a valid [https://en.wikipedia.org/wiki/ICO_(file_format) ICO file] {{PageDescription}} * Calling _ICON without an {{Parameter|imageHandle&}} uses the embeded icon, if available. ** Starting with '''build 20170906/64''', the..."
  • 05:5805:58, 19 April 2022 diff hist +960 N ERRORLINECreated page with "{{DISPLAYTITLE:_ERRORLINE}} The _ERRORLINE function returns the source code line number that caused the most recent runtime error. {{PageSyntax}} :{{Parameter|e%}} = _ERRORLINE {{PageDescription}} * Used in program error troubleshooting. * Does not require that the program use line numbers as it counts the actual lines of code. * The code line can be found using the QB64 IDE (Use the shortcut '''Ctrl+G''' to go to a specific line) or any other text editor suc..."
  • 05:5805:58, 19 April 2022 diff hist +3,139 N $END IFCreated page with "'''$IF''' is precompiler metacommand, which determines which sections of code inside its blocks are included into the final code for compliing. {{PageSyntax}} :$IF variable = expression THEN :. :$ELSEIF variable = expression THEN :. :$ELSE :. :$END IF * $IF is the start of a precompiler code block which includes or excludes sections of code from being compiled. * There is no single line $IF statement. $IF must be in a valid $IF THEN....."
  • 05:5805:58, 19 April 2022 diff hist +3,139 N $ELSEIFCreated page with "'''$IF''' is precompiler metacommand, which determines which sections of code inside its blocks are included into the final code for compliing. {{PageSyntax}} :$IF variable = expression THEN :. :$ELSEIF variable = expression THEN :. :$ELSE :. :$END IF * $IF is the start of a precompiler code block which includes or excludes sections of code from being compiled. * There is no single line $IF statement. $IF must be in a valid $IF THEN....."
  • 05:5705:57, 19 April 2022 diff hist +3,139 N $ELSECreated page with "'''$IF''' is precompiler metacommand, which determines which sections of code inside its blocks are included into the final code for compliing. {{PageSyntax}} :$IF variable = expression THEN :. :$ELSEIF variable = expression THEN :. :$ELSE :. :$END IF * $IF is the start of a precompiler code block which includes or excludes sections of code from being compiled. * There is no single line $IF statement. $IF must be in a valid $IF THEN....."
  • 05:5705:57, 19 April 2022 diff hist +746 N ECHOCreated page with "{{DISPLAYTITLE:_ECHO}} The _ECHO statement allows outputting text to a $CONSOLE window without having to alternate between _DEST pages. {{PageSyntax}} : _ECHO {''"text to output"'' | {{Parameter|textVariable$}}} {{PageDescription}} * _ECHO is a shorthand to saving current _DEST, switching to _DEST _CONSOLE, PRINTing, then switching back to the previous _DEST. * To output numbers, use the STR$ function. ==Availability== *..."
  • 05:5205:52, 19 April 2022 diff hist +2,459 N DROPPEDFILECreated page with "{{DISPLAYTITLE:_DROPPEDFILE}} The _DROPPEDFILE function returns the list of items (files or folders) dropped in a program's window after _ACCEPTFILEDROP is enabled. {{PageSyntax}} ''Syntax 1'' : {{Parameter|nextItem$}} = _DROPPEDFILE ''Syntax 2'' : {{Parameter|nextItem$}} = _DROPPEDFILE({{Parameter|index&}}) {{PageDescription}} * After _ACCEPTFILEDROP is enabled, once _TOTALDROPPEDFILES is greater than 0 the list of dropped items will be avail..."
  • 05:5205:52, 19 April 2022 diff hist +1,092 N DONTWAITCreated page with "{{DISPLAYTITLE:_DONTWAIT}} _DONTWAIT is used with the SHELL statement in '''QB64''' to specify that the program shouldn't wait until the external command/program is finished (which it otherwise does by default). {{PageSyntax}} : SHELL [{{KW|_DONTWAIT}}] [{{Parameter|commandLine$}}] {{PageDescription}} *Runs the command/program specified in {{Parameter|commandline$}} and lets the calling program continue at the same time in its current screen format. *Espe..."
  • 05:5205:52, 19 April 2022 diff hist +3,400 N DONTBLENDCreated page with "{{DISPLAYTITLE:_DONTBLEND}} The _DONTBLEND statement turns off 32 bit alpha blending for the current image or screen mode where _BLEND is default. {{PageSyntax}} : _DONTBLEND [{{Parameter|imageHandle&}}] {{Parameters}} * If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current _DESTination write page. {{PageDescription}} * If {{Parameter|imageHandle&}} is not valid, an Invalid handle error will occur. * [[_DONTBLEND]..."
  • 05:5105:51, 19 April 2022 diff hist +1,300 N DISPLAYORDERCreated page with "{{DISPLAYTITLE:_DISPLAYORDER}} The _DISPLAYORDER statement defines the order to render software, hardware and custom-OpenGL-code. {{PageSyntax}} : _DISPLAYORDER [{_SOFTWARE|_HARDWARE|_HARDWARE1|_GLRENDER}][, ...][, ...][, ...][, ...] {{Parameters}} * _SOFTWARE refers to software created surfaces or SCREENs. * _HARDWARE and _HARDWARE1 refer to surfaces created by OpenGL hardware acceleration. * _GLRENDER refers to OpenGL code rendering order {{PageDescr..."
  • 05:5105:51, 19 April 2022 diff hist +1,822 N DISPLAY (function)Created page with "{{DISPLAYTITLE:_DISPLAY (function)}} The _DISPLAY function returns the handle of the current image that is displayed on the screen. {{PageSyntax}} :{{Parameter|currentImage&}} = _DISPLAY {{PageDescription}} * Returns the current image handle value that is being displayed. Returns 0 if in the default screen image. * Not to be confused with the _DISPLAY statement that displays the screen when not using _AUTODISPLAY. {{PageExamples}} ''Examp..."
  • 05:5005:50, 19 April 2022 diff hist +3,723 N DISPLAYCreated page with "{{DISPLAYTITLE:_DISPLAY}} The _DISPLAY statement turns off the automatic display while only displaying the screen changes when called. {{PageSyntax}} : _DISPLAY {{PageDescription}} * '''_DISPLAY''' turns off the auto refresh screen default _AUTODISPLAY behavior. Prevents screen flickering. * Call _DISPLAY each time the screen graphics are to be displayed. Place call after the image has been changed. * Re-enable automatic display refreshing by calling ..."
  • 05:5005:50, 19 April 2022 diff hist +1,278 N DIREXISTSCreated page with "{{DISPLAYTITLE:_DIREXISTS}} The _DIREXISTS function determines if a designated file path or folder exists and returns true (-1) or false (0). {{PageSyntax}} : {{Parameter|dirExists%}} = _DIREXISTS({{Parameter|filepath$}}) {{PageDescription}} * The {{Parameter|filepath$}} parameter can be a literal or variable string path value. * The function returns -1 when a path or folder exists and 0 when it does not. * The function reads the system information..."
  • 05:5005:50, 19 April 2022 diff hist +2,212 N DIR$Created page with "{{DISPLAYTITLE:_DIR$}} The _DIR$ function returns common paths in '''Windows''' only such as My Documents, My Pictures, My Music, Desktop. {{PageSyntax}} : {{Parameter|d$}} = _DIR$("{{Parameter|folderspecification}}") {{Parameters}} * ''folderspecification'' may be "desktop", "download", "documents", "music", "video", "pictures", "appdata", "program data", "local data". * Some variation is accepted for the folder specification: :: MY DOCUMENTS, TEXT, DOCUMENT..."
  • 05:4905:49, 19 April 2022 diff hist +1,460 N DEVICESCreated page with "{{DISPLAYTITLE:_DEVICES}} The _DEVICES function returns the number of INPUT devices on your computer including keyboard, mouse and game devices. {{PageSyntax}} : {{Parameter|device_count%}} = _DEVICES {{PageDescription}} * Returns the number of devices that can be listed separately with the _DEVICE$ function by the device number. * Devices include keyboard, mouse, joysticks, game pads and multiple stick game controllers. * '''Note: This function must be r..."
  • 05:4605:46, 19 April 2022 diff hist +4,569 N DEVICEINPUTCreated page with "{{DISPLAYTITLE:_DEVICEINPUT}} The '''_DEVICEINPUT''' function returns the device number when a controller device button, wheel or axis event occurs. {{PageSyntax}} : {{Parameter|device%}} = _DEVICEINPUT : {{Parameter|device_active%}} = _DEVICEINPUT({{Parameter|device_number%}}) {{Parameters}} * Use the _DEVICEINPUT {{Parameter|device%}} INTEGER returned to find the number of the controller device being used. * A literal specific {{Parameter|device_number..."
  • 05:4605:46, 19 April 2022 diff hist +3,296 N DEVICE$Created page with "{{DISPLAYTITLE:_DEVICE$}} The '''_DEVICE$''' function returns a STRING value holding the controller type, name and input types of the input devices on a computer. {{PageSyntax}} : {{Parameter|device$}} = _DEVICE$({{Parameter|device_number}}) * The '''_DEVICES function must be read first to get the number of devices and to enable _DEVICE$ and _DEVICEINPUT.''' * The {{Parameter|device_number}} parameter indicates the number of the controller device to b..."
  • 05:3205:32, 19 April 2022 diff hist +787 N DEST (function)Created page with "{{DISPLAYTITLE:_DEST (function)}} The _DEST function returns the handle value of the current write page (the image used for drawing). {{PageSyntax}} :{{Parameter|result&}} = _DEST {{PageDescription}} * The current write page is where all drawing occurs by default. * The value returned is the same as the latest SCREEN's handle when creating custom screen modes using _NEWIMAGE. * Keep the _NEWIMAGE handle values when you move to another SCREEN mode so t..."
  • 05:3205:32, 19 April 2022 diff hist +4,329 N DESTCreated page with "{{DISPLAYTITLE:_DEST}} The _DEST statement sets the current write image or page. All graphic and print changes will be done to this image. {{PageSyntax}} :_DEST {{Parameter|imageHandle&}} {{PageDescription}} * {{Parameter|imageHandle&}} is the handle of the image that will act as the current write page. * '''_DEST 0''' refers to the present program SCREEN. You can use 0 to refer to the present program SCREEN. * _DEST _CONSOLE can set the desti..."
  • 05:3205:32, 19 April 2022 diff hist +851 N DESKTOPWIDTHCreated page with "{{DISPLAYTITLE:_DESKTOPWIDTH}} The _DESKTOPWIDTH function returns the width of the users current desktop. {{PageSyntax}} : {{Parameter|x&}} = _DESKTOPWIDTH {{PageDescription}} * No parameters are needed for this function. * This returns the width of the user's desktop, not the size of any screen or window which might be open on that desktop. ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} {{CodeStart}} s& = {{Cl|_NEWIMAGE}}(800, 600, 256..."
  • 05:3105:31, 19 April 2022 diff hist +855 N DESKTOPHEIGHTCreated page with "{{DISPLAYTITLE:_DESKTOPHEIGHT}} The _DESKTOPHEIGHT function returns the height of the users current desktop. {{PageSyntax}} : {{Parameter|y&}} = _DESKTOPHEIGHT {{PageDescription}} * No parameters are needed for this function. * This returns the height of the user's desktop, not the size of any screen or window which might be open on that desktop. ==Availability== * '''Version 1.000 and up.''' {{PageExamples}} {{CodeStart}} s& = {{Cl|_NEWIMAGE}}(800, 600..."
  • 05:3105:31, 19 April 2022 diff hist +1,496 N DEPTHBUFFERCreated page with "{{DISPLAYTITLE:_DEPTHBUFFER}} The _DEPTHBUFFER statement turns depth buffering ON or OFF, LOCKs or _CLEARS the buffer. {{PageSyntax}} : _DEPTHBUFFER {ON|OFF|LOCK|_CLEAR}[,handle&] {{PageDescription}} * Depth buffers store the distance of each pixel on an image/surface. When 3D drawing occurs new pixels are only drawn if they are closer than the existing pixels. After all content is drawn, it results in a scene which looks correct because content which is clo..."
  • 05:3005:30, 19 April 2022 diff hist +477 N DELAYCreated page with "{{DISPLAYTITLE:_DELAY}} The _DELAY statement suspends program execution for a SINGLE value of seconds. {{PageSyntax}} :_DELAY {{Parameter|seconds!}} {{PageDescription}} * {{Parameter|seconds!}} is the time to wait, accurate to nearest millisecond (.001). * While waiting, cpu cycles are relinquished to other applications. * Delays are not affected by midnight timer corrections. {{PageSeeAlso}} * _LIMIT * TIMER * ON TIMER(n) {{PageNavigation}}" current
  • 05:3005:30, 19 April 2022 diff hist +1,419 N DEFLATE$Created page with "{{DISPLAYTITLE:_DEFLATE$}} The _DEFLATE$ function compresses a string. {{PageSyntax}} :{{Parameter|result$}} = _DEFLATE$({{Parameter|stringToCompress$}}) {{PageDescription}} * {{Parameter|result$}} will contain the compressed version of {{Parameter|stringToCompress$}}. * To decompress the resulting string, use _INFLATE$. ==Availability== * '''Version 1.4 and up'''. {{PageExamples}} ''Example 1:'' Compressing a long string of text. {{CodeSta..."
  • 05:2905:29, 19 April 2022 diff hist +2,449 N DEFINECreated page with "{{DISPLAYTITLE:_DEFINE}} _DEFINE defines a set of variable names according to their first character as a specified data type. {{PageSyntax}} :_DEFINE {{Parameter|letter}}[{{Parameter|-range}}, ...] AS [{{KW|_UNSIGNED}}] datatype {{Parameters}} * Variable start ''letter range'' is in the form firstletter-endingletter (like A-C) or just a single letter. * ''Data types'': INTEGER, SINGLE, DOUBLE, LONG, STRING, _BIT, _BYTE, _..."
  • 05:2905:29, 19 April 2022 diff hist +1,454 N DEFAULTCOLORCreated page with "{{DISPLAYTITLE:_DEFAULTCOLOR}} The _DEFAULTCOLOR function returns the current default text color for an image handle or page. {{PageSyntax}} :{{Parameter|result&}} = _DEFAULTCOLOR [({{Parameter|imageHandle&}})] {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current write page or image designated by _DEST. * If {{Parameter|imageHandle&}} is an invalid handle, an invalid handle error occurs. Check han..."
  • 05:2805:28, 19 April 2022 diff hist +5,950 N DECLARE LIBRARYCreated page with "The '''DECLARE LIBRARY''' declaration allows the use of external library SUB and FUNCTION procedures supported by QB64. {{PageSyntax}} : '''DECLARE''' [DYNAMIC|CUSTOMTYPE|STATIC] '''LIBRARY''' [{''"Library_filename"''|''"Headerfile"''}] : {SUB|FUNCTION} [''procedure_name'' {{KW|ALIAS}}] ''library_procedure'' ([{{KW|BYVAL}}] ''parameter {{KW|AS}}'', ...) ::. ::. 'other SUBs or Functions as required ::. : '''END DECLARE''' {{Parameters}} * The {{Paramet..."
  • 05:0205:02, 19 April 2022 diff hist +1,916 N CWD$Created page with "{{DISPLAYTITLE:_CWD$}} The _CWD$ function returns the current working directory path as a string value without a trailing path separator. {{PageSyntax}} : {{Parameter|workingDirectory$}} = _CWD$ {{PageDescription}} * By default, the initial working directory path is usually the same as the directory of the executable file run. * The current working directory can be changed with the CHDIR or SHELL command; CHDIR sets it, _CWD$ returns it. * Path retu..."
  • 05:0205:02, 19 April 2022 diff hist +1,427 N COPYPALETTECreated page with "{{DISPLAYTITLE:_COPYPALETTE}} The _COPYPALETTE statement copies the color palette intensities from one 4 or 8 BPP image to another image or a _NEWIMAGE screen page using 256 or less colors. {{PageSyntax}} :_COPYPALETTE [{{Parameter|sourceImageHandle&}}[, {{Parameter|destinationImageHandle&}}]] {{PageDescription}} * Palette Intensity settings are '''not''' used by 24/32 bit images. Use only with 4 or 8 BPP images. * _PIXELSIZE function returns 1 to ind..."
  • 05:0205:02, 19 April 2022 diff hist +1,776 N CVCreated page with "{{DISPLAYTITLE:_CV}} The _CV function is used to convert _MK$, ASCII, STRING values to numerical values. {{PageSyntax}} :{{Parameter|result}} = _CV({{Parameter|numericalType}}, {{Parameter|MKstringValue$}}) {{Parameters}} * {{Parameter|numericalType}} is any number type: INTEGER, LONG, SINGLE, DOUBLE, _INTEGER64, _FLOAT, _BYTE or _BIT. * Integer, Long, Byte and Bit values can be signed or _UNSIGNED. * The {{Para..."
  • 05:0105:01, 19 April 2022 diff hist +3,451 N COPYIMAGECreated page with "{{DISPLAYTITLE:_COPYIMAGE}} The _COPYIMAGE function creates an identical designated image in memory with a different negative LONG handle value. {{PageSyntax}} : newhandle& = _COPYIMAGE[({{Parameter|imageHandle&}}[, {{Parameter|mode%}})]] {{Parameters}} * The LONG ''newhandle&'' value returned will be different than the source handle value supplied. * If ''imageHandle&'' parameter is omitted or zero is designated, the current software _DEST|destinat..."
  • 05:0105:01, 19 April 2022 diff hist +689 N CONTROLCHR (function)Created page with "{{DISPLAYTITLE:_CONTROLCHR (function)}} The _CONTROLCHR function returns the current state of the _CONTROLCHR statement as -1 when OFF and 0 when ON. {{PageSyntax}} :{{Parameter|status%}} = _CONTROLCHR {{PageDescription}} * The function requires no parameters. * Default return is 0 when the _CONTROLCHR statement has never been used previous to a function read. * When the statement has been use to turn OFF con..."
  • 04:5004:50, 19 April 2022 diff hist +1,910 N CONTROLCHRCreated page with "{{DISPLAYTITLE:_CONTROLCHR}} The _CONTROLCHR statement can be used to turn OFF control character attributes and allow them to be printed. {{PageSyntax}} : _CONTROLCHR {OFF|ON} {{PageDescription}} * The OFF clause allows control characters 0 to 31 to be printed and not format printing as normal text characters. ::For example: '''{{text|PRINT CHR$(13)|green}}''' 'will not move the cursor to the next line and '''{{text|PRINT CHR$(9)|green}}''' 'will not tab..."
  • 04:5004:50, 19 April 2022 diff hist +721 N CONTINUECreated page with "{{DISPLAYTITLE:_CONTINUE}} The _CONTINUE statement is used in a DO...LOOP, WHILE...WEND or FOR...NEXT block to skip the remaining lines of code in a block (without exiting it) and start the next iteration. It works as a shortcut to a GOTO, but without the need for a line label. {{PageSyntax}} : _CONTINUE ==Availability== * Build 20170628/55 up. {{PageExamples}} ''Example:'' {{CodeStart}} {{Cl|FOR}} i = 1 {{Cl|TO}} 10 {..."
  • 04:2404:24, 19 April 2022 diff hist +935 N CONSOLETITLECreated page with "{{DISPLAYTITLE:_CONSOLETITLE}} The _CONSOLETITLE statement creates the title of the console window using a literal or variable string. {{PageSyntax}} : _CONSOLETITLE {{Parameter|text$}} {{PageDescription}} * The ''text$'' used can be a literal or variable STRING value. {{PageExamples}} ''Example:'' Hiding the main program window while displaying the console window with a title. {{CodeStart}} '' '' {{Cl|$SCREENHIDE}} {{Cl|_DELAY}} 4 {{Cl|$CONS..."
  • 04:2404:24, 19 April 2022 diff hist +1,478 N CONSOLEINPUTCreated page with "{{DISPLAYTITLE:_CONSOLEINPUT}} The _CONSOLEINPUT function is used to monitor any new mouse or keyboard input coming from a $CONSOLE window. It must be called in order for _CINP to return valid values. Windows-only. {{PageSyntax}} :{{Parameter|infoExists%%}} = _CONSOLEINPUT {{PageDescription}} * Returns 1 if new keyboard information is available, 2 if mouse information is available, otherwise it returns 0. * Must be called before reading any of the other m..."
  • 04:2404:24, 19 April 2022 diff hist +2,383 N CONSOLECreated page with "{{DISPLAYTITLE:_CONSOLE}} The _CONSOLE statement can be used to turn a console window ON/OFF. {{PageSyntax}} : _CONSOLE {OFF|ON} : _DEST _CONSOLE * _CONSOLE OFF or ON must be used after the $CONSOLE Metacommand has established that a console window is desired. * _CONSOLE OFF turns the console window off once a console has been established using $CONSOLE:ON or ONLY. * _CONSOLE ON should only be used after the console window has been..."
  • 04:2304:23, 19 April 2022 diff hist +2,388 N MetacommandCreated page with "'''Metacommands''' are program wide commands that start with $. ==Legacy metacommands (Qbasic/QuickBASIC)== ===Syntax=== :REM $INCLUDE: 'QB.BI' 'loads a reference file or library :REM $DYNAMIC 'enables resizing of array dimensions with REDIM :REM $STATIC 'arrays cannot be resized once dimensioned ===Description=== * Qbasic Metacommands are normally used at the program start and are in effect throughout the program. * Qbasic Metacommands are always pr..."
  • 04:2304:23, 19 April 2022 diff hist +3,564 N $CONSOLECreated page with "The $CONSOLE Metacommand creates a console window that can be used throughout a QB64 program module. {{PageSyntax}} : $CONSOLE[:ONLY] * _CONSOLE '''ON''' or '''OFF''' may be used to show or hide the console window at run time. * The ''':ONLY''' option can be used when only a console window is desired without a program window. * _DEST _CONSOLE may be used to send screen output to the console window. * _SCREENHIDE and _SCREENSHOW can be..."
  • 04:2204:22, 19 April 2022 diff hist +2,779 N CONNECTIONADDRESS$Created page with "{{DISPLAYTITLE:_CONNECTIONADDRESS}} The _CONNECTIONADDRESS function returns a connected user's STRING IP address value. {{PageSyntax}} :{{Parameter|result$}} = _CONNECTIONADDRESS[$]({{Parameter|connectionHandle&}}) {{PageDescription}} * The handle can come from the _OPENHOST, OPENCLIENT or _OPENCONNECTION QB64 TCP/IP functions. * For '''HOSTs''': It may return "TCP/IP:8080:213.23.32.5" where 8080 is the port it..."
  • 04:2204:22, 19 April 2022 diff hist +981 N CONNECTEDCreated page with "{{DISPLAYTITLE:_CONNECTED}} The _CONNECTED function returns the status of a TCP/IP connection handle. {{PageSyntax}} :{{Parameter|result&}} = _CONNECTED({{Parameter|connectionHandle&}}) {{PageDescription}} * The handle can come from the _OPENHOST, OPENCLIENT or _OPENCONNECTION QB64 TCP/IP functions. * Returns -1 if still connected or 0 if connection has ended/failed. * Do not rely solely on this function to check for ending communication. * Use "..."
  • 04:2104:21, 19 April 2022 diff hist +1,274 N COMMANDCOUNTCreated page with "{{DISPLAYTITLE:_COMMANDCOUNT}} The _COMMANDCOUNT function returns the number or arguments passed from the command line to the COMMAND$ function. {{PageSyntax}} :{{Parameter|result&}} = _COMMANDCOUNT {{PageDescription}} * The function returns the number of arguments passed from the command line to a program when it's executed. * Arguments are spaced as separate numerical or text values. Spaced text inside of quotes is considered as one argument. * In C,..."
  • 04:2104:21, 19 April 2022 diff hist +1,128 N $COLORCreated page with "$COLOR is a metacommand that adds named color constants in a program. {{PageSyntax}} : $COLOR:0 : $COLOR:32 {{PageDescription}} * $COLOR:0 adds constants for colors 0-15. The actual constant names can be found in the file '''source/utilities/color0.bi'''. * $COLOR:32 adds constants for 32-bit colors, similar to HTML color names. The actual constant names can be found in the file '''source/utilities/color32.bi'''. * ..."
  • 04:1904:19, 19 April 2022 diff hist +2,148 N CLIPBOARDIMAGECreated page with "{{DISPLAYTITLE:_CLIPBOARDIMAGE}} The _CLIPBOARDIMAGE statement copies a valid QB64 image to the clipboard. {{PageSyntax}} : _CLIPBOARDIMAGE = {{Parameter|existingImageHandle&}} {{PageDescription}} * {{Parameter|existingImageHandle&}} is a valid handle to a graphic QB64 image in memory, created with _NEWIMAGE, _LOADIMAGE or _COPYIMAGE. * You can pass _SOURCE, _DEST or _DISPLAY to copy the current source, destination or active display pa..."
  • 04:1904:19, 19 April 2022 diff hist +1,937 N CLIPBOARDIMAGE (function)Created page with "{{DISPLAYTITLE:_CLIPBOARDIMAGE (function)}} The _CLIPBOARDIMAGE function pastes an image from the clipboard into a new 32-bit image in memory. {{PageSyntax}} : {{Parameter|newImageHandle&}} = _CLIPBOARDIMAGE {{PageDescription}} * When the paste operation is successful, {{Parameter|newImageHandle&}} will be < -1. Handle values of -1 or 0 indicate that there wasn't an image in the clipboard or that the forma..."
  • 04:1704:17, 19 April 2022 diff hist +1,953 N CLIPCreated page with "{{DISPLAYTITLE:_CLIP}} The _CLIP option is used in a QB64 graphics PUT to allow placement of an image partially off of the screen. {{PageSyntax}} :PUT [STEP]({{Parameter|column, row}}), {{Parameter|image_array(start)}}[, _CLIP] [{XOR|PSET|AND|OR|PRESET}][, {{Parameter|omitcolor}}] {{PageDescription}} * _CLIP should be placed immediately before the PUT action if used. XOR is default when not used. *..."
  • 04:1704:17, 19 April 2022 diff hist +4,806 N CLEARCOLORCreated page with "{{DISPLAYTITLE:_CLEARCOLOR}} The _CLEARCOLOR statement sets a specific color to be treated as transparent when an image is later put (via _PUTIMAGE) onto another image. {{PageSyntax}} :_CLEARCOLOR {{{Parameter|color&}}|_NONE}[, {{Parameter|Dest_Handle&}}] {{Parameters}} * In color modes using a palette, {{Parameter|color&}} is the palette index of the new transparent color value or _NONE designates no clear colors. * If {{Parameter|color&}} is not a valid..."
  • 04:1604:16, 19 April 2022 diff hist +1,141 N CLEARCOLOR (function)Created page with "{{DISPLAYTITLE:_CLEARCOLOR (function)}} The _CLEARCOLOR function returns the current transparent color of an image or page. {{PageSyntax}} :''result&'' = _CLEARCOLOR [{{Parameter|Source_Handle&}}] {{PageDescription}} * If {{Parameter|Source_Handle&}} is omitted, it is assumed to be the current destination write page. * If {{Parameter|Source_Handle&}} is an invalid handle value(-1), then an ERROR Codes|..."
  • 04:1604:16, 19 April 2022 diff hist +2,492 N CINPCreated page with "{{DISPLAYTITLE:_CINP}} The _CINP function returns keyboard key press codes from a $CONSOLE window. Windows-only. {{PageSyntax}} :{{Parameter|keycode&}} = _CINP {{PageDescription}} * Return values are the same as the ones for INP when used to read keyboard input. See table below. :* '''Negative''' LONG values returned indicate that a key was released or a lock function key has been turned off. * Keywords_currently_not_supported_by_QB64#Keywords_N..."
  • 04:1504:15, 19 April 2022 diff hist +908 N CEILCreated page with "{{DISPLAYTITLE:_CEIL}} The _CEIL function rounds a numeric value up to the next whole number or INTEGER value. {{PageSyntax}} : {{Parameter|result}} = _CEIL({{Parameter|expression}}) * _CEIL returns he smallest integral value that is greater than the numerical {{Parameter|expression}} (as a floating-point value). * This means that _CEIL rounds up for both positive and negative numbers. ==Availability== * '''Version 1.000 and up.''' {{PageExam..."
  • 04:1504:15, 19 April 2022 diff hist +1,301 N $CHECKINGCreated page with "The $CHECKING metacommand turns C++ event checking ON or OFF. {{PageSyntax}} : $CHECKING:{ON|OFF} {{PageDescription}} * The Metacommand does '''not''' require a comment or REM before it. There is no space after the colon. * The OFF action turns event checking off and should '''only be used when running stable, errorless code.''' * The default $CHECKING:ON action is only required when checking has been turned OFF previously. * When $CHECKING:OFF is use..."
  • 04:1404:14, 19 April 2022 diff hist +489 N CAPSLOCKCreated page with "{{DISPLAYTITLE:_CAPSLOCK}} The _CAPSLOCK statement sets the state of the Caps Lock key. {{PageSyntax}} : _CAPSLOCK {ON|OFF|_TOGGLE} ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _CAPSLOCK (function), _NUMLOCK (function), _SCROLLLOCK (function) * _NUMLOCK (statement), _SCROLLLOCK (statement) {{Pa..."

18 April 2022

  • 22:4322:43, 18 April 2022 diff hist +588 N CAPSLOCK (function)Created page with "{{DISPLAYTITLE:_CAPSLOCK (function)}} The _CAPSLOCK function returns the current state of the Caps Lock key as on (-1) or off (0). {{PageSyntax}} : {{Parameter|keyStatus%%}} = _CAPSLOCK ==Availability== * Version 1.4 and up. * Not available in Linux or macOS. {{PageSeeAlso}} * _NUMLOCK (function), _SCROLLLOCK (fu..."
  • 22:3022:30, 18 April 2022 diff hist +4,560 N BYTECreated page with "{{DISPLAYTITLE:_BYTE}} A _BYTE variable can hold signed variable values from -128 to 127 (one byte or 8 _BITs). Unsigned from 0 to 255. {{PageSyntax}} : DIM {{Parameter|byte}} AS [_UNSIGNED] _BYTE {{PageDescription}} * Signed _BYTE values can range from -128 to 127. * _UNSIGNED _BYTEs can hold values from 0 to 255. _UNSIGNED expands the range of positive values. * Can be defined in a '''QB64''' _DEFINE statement using..."
  • 22:2922:29, 18 April 2022 diff hist +2,100 N BUTTONCHANGECreated page with "{{DISPLAYTITLE:_BUTTONCHANGE}} The _BUTTONCHANGE function returns -1 or 1 when a specified button number on a controller device has been pressed or released. {{PageSyntax}} : {{Parameter|press%}} = _BUTTONCHANGE({{Parameter|button_number%}}) {{PageDescription}} * Values returned are -1 for a press and 1 when a button is released. No press or release event returns zero. * The {{Parameter|button_number%}} must be a number which does not exceed the number of but..."
  • 22:2922:29, 18 April 2022 diff hist +2,064 N BUTTONCreated page with "{{DISPLAYTITLE:_BUTTON}} The _BUTTON function returns -1 when specified button number on a controller device is pressed. {{PageSyntax}} : {{Parameter|press%%}} = _BUTTON({{Parameter|button_number%}}) {{PageDescription}} * Values returned are -1 for a press and 0 when a button is released or not pressed. * The {{Parameter|button_number%}} must be a number which does not exceed the number of buttons found by the _LASTBUTTON function. * '''The number of _D..."
  • 22:2822:28, 18 April 2022 diff hist +747 N BLUE32Created page with "{{DISPLAYTITLE:_BLUE32}} The _BLUE32 function returns the blue component intensity of a 32-bit image or surface color. {{PageSyntax}} : {{Parameter|blue32color&}} = _BLUE32({{Parameter|rgbaColor&}}) {{PageDescription}} * {{Parameter|rgbaColor&}} is the 32-bit ''RGBA'' color value to retrieve the blue component intensity value from. * ''RGBA'' color values are returned by the _PALETTECOLOR, POINT, _RGB, _RGB32, [[_RGBA]..."
  • 22:2822:28, 18 April 2022 diff hist +1,431 N BLUECreated page with "{{DISPLAYTITLE:_BLUE}} The _BLUE function returns the palette intensity or the blue component intensity of a 32-bit image color. {{PageSyntax}} : {{Parameter|blueintensity&}} = _BLUE({{Parameter|rgbaColorIndex&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * {{Parameter|rgbaColorIndex&}} is the ''RGBA'' color value or palette index of the color to retrieve the blue component intensity from. * The LONG intensity value returned ranges from 0 (no inte..."
  • 22:2722:27, 18 April 2022 diff hist +602 N BLINK (function)Created page with "{{DISPLAYTITLE:_BLINK (function)}} The _BLINK function returns the current blink setting for SCREEN 0 colors. If enabled, returns -1 (default), otherwise returns 0. {{PageSyntax}} : {{Parameter|blinkState%%}} = _BLINK ==Availability== * Build 20170816/61 up (August 16, 2017). {{PageExamples}} {{CodeStart}}{{Cl|COLOR}} 16, 7 'Try uncommenting the line below: '{{Cl|_BLINK}} OFF {{Cl|IF}} _BLINK {{Cl|THEN}} {{Cl|PRINT}} "I'm blinking" {{Cl|ELSE}} {{C..."
  • 22:2622:26, 18 April 2022 diff hist +1,236 N BLINKCreated page with "{{DISPLAYTITLE:_BLINK}} The _BLINK statement toggles blinking colors in text mode (SCREEN 0). Default state is ON. {{PageSyntax}} : _BLINK {ON|OFF} {{PageDescription}} * SCREEN 0 emulates the VGA palette with regular colors from 0 to 15 and blinking colors from 16-31 (these are the same colors as 0-15, except their blink attribute is set to on). _BLINK OFF emulates writing to the video memory and disabling blinking for colors 16-31. * Using colors 16-31 f..."
  • 22:2622:26, 18 April 2022 diff hist +563 N BLEND (function)Created page with "{{DISPLAYTITLE:_BLEND (function)}} The _BLEND function returns enabled or disabled for the current window or a specified image handle when 32 bit. {{PageSyntax}} :{{Parameter|result%}} = _BLEND [({{Parameter|imageHandle&}})] {{PageDescription}} * _BLEND returns -1 if enabled or 0 if disabled by _DONTBLEND statement. * '''Note: _DONTBLEND is faster than the default _BLEND unless you really need to use it in 32..."
  • 22:1622:16, 18 April 2022 diff hist +4,655 N BLENDCreated page with "{{DISPLAYTITLE:_BLEND}} The _BLEND statement turns on 32 bit alpha blending for an image or screen mode and is on by default. {{PageSyntax}} : _BLEND [{{Parameter|imageHandle&}}] ===Parameters=== * {{Parameter|imageHandle&}} refers to an image in memory. If not specified, the current destination page (See _DEST) is affected. {{PageDescription}} * Alpha blending is on by default when loading a .PNG image to a 32-bit surface. * Normally it is used to turn..."
  • 22:0622:06, 18 April 2022 diff hist +5,407 N BITCreated page with "{{DISPLAYTITLE:_BIT}} The _BIT datatype can return only values of 0 (bit off) and -1 (bit on). {{PageSyntax}} : DIM {{Parameter|variable}} AS [{{KW|_UNSIGNED}}] _BIT [* {{Parameter|numberofbits}}] : _DEFINE {{Parameter|Letter}}[{{Parameter|-Range}}|,...] AS [{{KW|_UNSIGNED}}] _BIT [* {{Parameter|numberofbits}}] {{PageDescription}} * An _UNSIGNED _BIT can hold 0 or 1 instead of 0 and -1, if you set the numberofbits you can hold larger..."
  • 22:0122:01, 18 April 2022 diff hist +1,108 N BACKGROUNDCOLORCreated page with "{{DISPLAYTITLE:_BACKGROUNDCOLOR}} The _BACKGROUNDCOLOR function returns the current background color. {{PageSyntax}} :{{Parameter|BGcolor&}} = _BACKGROUNDCOLOR {{PageDescription}} * Use it to get the current background color to restore later in a program. * Returns the closest attribute value of the background color. {{PageExamples}} ''Example 1:'' Storing a background color for later use. {{CodeStart}} '' '' {{Cl|SCREEN}} 0 {{Cl|COLOR}} 1, 3 {{Cl|CLS}} BG..."
  • 21:5921:59, 18 April 2022 diff hist +2,084 N AXISCreated page with "{{DISPLAYTITLE:_AXIS}} The _AXIS function returns the relative position of a specified axis number on a controller device. {{PageSyntax}} : {{Parameter|move!}} = _AXIS({{Parameter|axis_number%}}) * SINGLE values returned range between -1 and 1 as maximums and 0 indicating minimum or axis center. * When the mouse is moved on the program screen, moves left or above center are negative while below or right are positive. * The ''axis_number'' must be a number..."
  • 21:4321:43, 18 April 2022 diff hist +838 N AUTODISPLAY (function)Created page with "{{DISPLAYTITLE:_AUTODISPLAY (function)}} The _AUTODISPLAY function returns the current display mode as true (-1) if automatic or false (0) if disabled using _DISPLAY. {{PageSyntax}} : {{Parameter|displayStatus%%}} = _AUTODISPLAY {{PageDescription}} * The function returns true (-1) if _AUTODISPLAY is enabled. This is the default state and indicates that every screen change (text or graphics) is displayed..."
  • 21:4221:42, 18 April 2022 diff hist +822 N AUTODISPLAYCreated page with "{{DISPLAYTITLE:_AUTODISPLAY}} The _AUTODISPLAY statement enables the automatic display of the screen image changes previously disabled by _DISPLAY. {{PageSyntax}} :_AUTODISPLAY {{PageDescription}} * _AUTODISPLAY is on by default and displays the screen at around 30 frames per second (normal vertical retrace speed). * _DISPLAY disables automatic graphic displays, but it also eliminates having to use PCOPY or page flipping when used correctly. Placi..."
  • 21:4221:42, 18 April 2022 diff hist +959 N ATANHCreated page with "{{DISPLAYTITLE:_ATANH}} The _ATANH returns the arc hyperbolic tangent of {{Parameter|x!}}, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ATANH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{text|(cosine..."
  • 21:4121:41, 18 April 2022 diff hist +1,479 N ATAN2Created page with "{{DISPLAYTITLE:_ATAN2}} The _ATAN2 function returns the radian angle between the positive x-axis of a plane and the point given by the coordinates (x, y). {{PageSyntax}} : {{Parameter|angle!}} = _ATAN2({{Parameter|y}}, {{Parameter|x}}) {{Parameters}} * {{Parameter|y}} is the vertical axis position (row) as a positive, zero or negative floating point value. * {{Parameter|x}} is the horizontal axis position (column) as a positive, zero or negative floating poin..."
  • 21:3921:39, 18 April 2022 diff hist +1,066 N $ASSERTSCreated page with "The $ASSERTS metacommand enables debug tests with the _ASSERT macro. {{PageSyntax}} :$ASSERTS :$ASSERTS:CONSOLE {{PageDescription}} * If an error message is passed to the _ASSERT statement, it is displayed in the console window if $ASSERTS:CONSOLE is used. ==Availability== * '''Version 1.4 and up'''. {{PageExamples}} ''Example:'' Adding test checks for parameter inputs in a function. {{CodeStart}} {{Cl|$ASSERTS}}:CONSOLE {{Cl|D..."
  • 21:3921:39, 18 April 2022 diff hist +1,388 N ASSERTCreated page with "{{DISPLAYTITLE:_ASSERT}} The _ASSERT statement can be used to perform tests in code that's in development, for debugging purposes. {{PageSyntax}} :_ASSERT {{Parameter|condition}}[, {{Parameter|errorMessage$}}] {{PageDescription}} * {{Parameter|condition}} is the condition that must be met in order to consider the _ASSERT valid. * Optional {{Parameter|errorMessage$}} is the message to be displayed in the console window if $ASSERTS:CONSOLE is use..."
  • 21:1121:11, 18 April 2022 diff hist +944 N ASINHCreated page with "{{DISPLAYTITLE:_ASINH}} The _ASINH returns the arc hyperbolic sine of x, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ASINH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{text|(cosine)}}, SIN {{tex..."
  • 21:1021:10, 18 April 2022 diff hist +2,572 N ASINCreated page with "{{DISPLAYTITLE:_ASIN}} The _ASIN function returns the angle measured in radians based on an input SINe value ranging from -1 to 1. {{PageSyntax}} : {{Parameter|radian_angle!}} = _ASIN({{Parameter|sine_value!}}) {{PageDescription}} * The {{Parameter|sine_value!}} must be measured >= -1 and <= 1, or else it will generate a return value of '''-1.#IND''', which is basically QB64's way of telling us that the number doesn't exist. * ARCSINE is the inverse func..."
  • 21:0921:09, 18 April 2022 diff hist +2,033 N ALPHA32Created page with "{{DISPLAYTITLE:_ALPHA32}} The _ALPHA32 function returns the alpha transparency level of a 32 bit color value. {{PageSyntax}} :{{Parameter|alpha&}} = _ALPHA32({{Parameter|color32~&}})''' {{Parameters}} * {{Parameter|color32&}} is the _UNSIGNED LONG 32 bit color value used to retrieve the alpha level. ** Color values that are set as a _CLEARCOLOR always have an alpha level of 0 (transparent). ** _SETALPHA can set any alpha level from 0 (or fully..."
  • 21:0921:09, 18 April 2022 diff hist +2,745 N ALPHACreated page with "{{DISPLAYTITLE:_ALPHA}} The _ALPHA function returns the alpha channel transparency level of a color value used on a screen page or image. {{PageSyntax}} :{{Parameter|result&}} = _ALPHA({{Parameter|color~&}} [, {{Parameter|imageHandle&}}]) {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current write page. Invalid handles will create Illegal function call errors. * _NEWIMAGE 32 bit SCREEN modes wi..."
  • 20:5120:51, 18 April 2022 diff hist 0 N File:IDE macos.pngNo edit summary
  • 20:4820:48, 18 April 2022 diff hist −19 Main PageNo edit summary
  • 20:4620:46, 18 April 2022 diff hist +2,762 N ALLOWFULLSCREENCreated page with "{{DISPLAYTITLE:_ALLOWFULLSCREEN}} The _ALLOWFULLSCREEN statement allows setting the behavior of the ALT+ENTER combo. {{PageSyntax}} : _ALLOWFULLSCREEN [{_STRETCH|_SQUAREPIXELS|OFF|_ALL}][, {_SMOOTH|OFF|_ALL}] {{PageDescription}} * Calling the statement with no parameters enables all four possible full screen modes (and is the default state when a program is started): both _STRETCH (_SMOOTH and _OFF) and _SQUAREPIXELS (_SMOOTH and _OFF)..."
  • 20:4620:46, 18 April 2022 diff hist +970 N ACOSHCreated page with "{{DISPLAYTITLE:_ACOSH}} The _ACOSH returns the nonnegative arc hyperbolic cosine of {{Parameter|x!}}, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ACOSH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{te..."
  • 20:4520:45, 18 April 2022 diff hist +3,553 ACOSNo edit summary
  • 20:4320:43, 18 April 2022 diff hist +84 N ACOSCreated page with "https://qb64phoenix.com/wiki/www.qb64.org/wiki/index1115.html?title=ACOS&action=edit"
  • 20:4320:43, 18 April 2022 diff hist +2,123 N ACCEPTFILEDROPCreated page with "{{DISPLAYTITLE:_ACCEPTFILEDROP}} The _ACCEPTFILEDROP statement prepares a program window to receive files dropped from Windows Explorer in a drag/drop operation. {{PageSyntax}} : _ACCEPTFILEDROP [{ON|OFF}] {{PageDescription}} * Calling the statement with no parameters turns drag/dropping ON. * To know when files have been dropped into your program's window, check that _TOTALDROPPEDFILES is greater than 0. * Use _DROPPEDFILE to read the list, either se..."
  • 20:4120:41, 18 April 2022 diff hist +22,957 N Text Using GraphicsCreated page with "While QB64 offers _FONT and Unicode text options, Qbasic was limited in what it could offer. This shortfall could be overcome in various ways including using sprite pictures. Thanks to QB64, we can have the best in both worlds without creating them yourself! :::::::::1) The characters can be loaded in a file for Qbasic. :::::::::2) Text fonts can be sized without re-loading them. :::::::::3) Data files are smaller than BSAVE image files. :::::::::4} Proper c..."
  • 20:4120:41, 18 April 2022 diff hist +4,735 N LibrariesCreated page with "<center>'''DLL, C++ and the Windows API Libraries'''</center> * Working with QB64 Declarations: C Libraries, DLL Libraries, Windows Libraries * QB64 Library Keywords: DECLARE LIBRARY, DECLARE DYNAMIC LIBRARY, ALIAS, BYVAL * PEEK and POKE Library: PEEK and POKE Library * COM and LPT ''Inpout32.dll'' OUT: Port Access Libraries * Setting Windows environment values and changing them in the Registry: Windows Environment * SF..."
  • 20:4020:40, 18 April 2022 diff hist +8,639 N Windows EnvironmentCreated page with "You can try to set environmental values for a program. The program doesn't affect anything other than itself and its child processes. {{CodeStart}} '' '' {{Cl|DECLARE DYNAMIC LIBRARY}} "kernel32" {{Cl|FUNCTION}} SetEnvironmentVariableA& ({{Cl|BYVAL}} lpName {{Cl|AS}} {{Cl|_OFFSET}}, {{Cl|BYVAL}} lpValue {{Cl|AS}} {{Cl|_OFFSET}}) {{Cl|FUNCTION}} GetLastError~& () {{Cl|DECLARE LIBRARY|END DECLARE}} {{Cl|DIM}} Nam {{Cl|AS}} {{Cl|STRING}} {{Cl|DIM}} Value {{Cl|AS}} {{Cl|..."
  • 20:3920:39, 18 April 2022 diff hist +2,290 N Console WindowCreated page with "QB64 has console window support using the following QB64 Metacommand or keyword: {{PageSyntax}} ::: $CONSOLE ::: _CONSOLE [{ON|OFF}] * _CONSOLE OFF turns the console window off once a console has been established using the $CONSOLE Metacommand. * _CONSOLE ON should only be used AFTER the console window has been turned OFF previously. * _DEST CONSOLE can be used to send screen output to the console window using QB64 commands such as PRINT...."
  • 20:3420:34, 18 April 2022 diff hist +1,740 BooleanNo edit summary
  • 20:3320:33, 18 April 2022 diff hist +86 BooleanNo edit summary
  • 18:5718:57, 18 April 2022 diff hist +21 BooleanNo edit summary
  • 18:5518:55, 18 April 2022 diff hist +144 BooleanNo edit summary
  • 18:5418:54, 18 April 2022 diff hist +605 BooleanNo edit summary
  • 18:5218:52, 18 April 2022 diff hist +337 BooleanNo edit summary
  • 18:5118:51, 18 April 2022 diff hist +713 BooleanNo edit summary
  • 18:4918:49, 18 April 2022 diff hist +460 BooleanNo edit summary
  • 18:4818:48, 18 April 2022 diff hist +3 N BooleanCreated page with "foo"
  • 18:4318:43, 18 April 2022 diff hist +5,442 N BinaryCreated page with "'''Binary''' is the base 2 numbering system. It is used by computers because the computer consists of switches that are either on or off. The primary purpose of reading bit values is to translate what was sent by a port or register read. * Base 2 has numerical values of 0 for off or 1 for on. There is no Qbasic function to return the binary values. * A computer register has 8 bit switches for one byte of data. Each register can return values from 0 to 255 just like ..."
  • 18:4118:41, 18 April 2022 diff hist +24,953 N ASCIICreated page with "==ASCII and Extended Codes== {| align="right" | __TOC__ |} <center>[http://en.wikipedia.org/wiki/Code_page_437 MS-DOS code page 437]:</center> :{| border="1" cellpadding="2" ! colspan="8"|[http://ascii.cl/control-characters.htm ASCII Control 0 to 31]   |        ASCII Keyboard Character Codes 32 to 127                |- ! Code ||Character <tt>[key]</tt> || Code || Character || Code || Character || Code || Character |- | 0 ||        (N..."
  • 18:4118:41, 18 April 2022 diff hist +17,245 N ArraysCreated page with "{| align="center" | __TOC__ |} ===What are Arrays?=== Arrays are simply variables with a number of elements that can each hold data in memory. To designate a certain element, integers denote the value's position in memory. Don't let talk about memory scare you! Basic does all of the work for you just by using the simple commands in this tutorial. Besides that, you have already been using memory since you created your first variable! Arrays can store element bytes..."
  • 18:4018:40, 18 April 2022 diff hist +2,293 N Keywords currently not supported by QB64Created page with "The keywords listed here are not supported in QB64. QB64 is meant to be compatible with '''QB 4.5 or lower''' versions. '''PDS (7.1) is not supported'''. Older code that uses these keywords won't generate errors, as these are ignored by the compiler. {| align="right" | __TOC__ |} * ALIAS (supported in DECLARE LIBRARY only) * ANY * BYVAL (supported in DECLARE LIBRARY only) * CALLS * CDECL * DATE$ (statement) (reading the current DATE$ is sup..."
  • 14:3114:31, 18 April 2022 diff hist −19 Template:ParameterNo edit summary
  • 13:4213:42, 18 April 2022 diff hist +50 N Template:ParameterCreated page with "{{#if {{{Parameter}}} | {{{result&}}} | result& }}"
  • 13:0313:03, 18 April 2022 diff hist +14,693 N QB64 FAQCreated page with "{| align="center" |__TOC__ |} As with everything else, this list will be updated to correspond to new progress of QB64 so make sure that you are using the latest version of '''QB64'''. Please note that it may take a short time to update this list. <center>'''{{text|It's recommended to exclude (whitelist) "qb64.exe" (also the ''internal'' folder) from any real-time anti-virus scanning to prevent IDE Module Errors.|red}}'''</center> ==Q: What is QB64?== A: '''QB..."
  • 12:1212:12, 18 April 2022 diff hist +84,493 N Keyword Reference - By usageCreated page with "{| align="Right" | __TOC__ |} Go to Frequently Asked Questions about QB64 Go to Alphabetical keywords Keywords currently not supported by QB64 Keywords Not Supported in Linux or MAC versions == Arrays and Data Storage == <center>'''Arrays'''</center> * _DEFINE (statement) {{text|defines a range of unt..."
  • 12:0612:06, 18 April 2022 diff hist −894 Main PageNo edit summary
  • 12:0412:04, 18 April 2022 diff hist +87,713 Keyword Reference - AlphabeticalNo edit summary
  • 12:0312:03, 18 April 2022 diff hist +1,198 N Keyword Reference - AlphabeticalCreated page with "<div id="toc"><p style="text-align: center"><br> '''Alphabetical QB64 Keyword Listings''' <br><br>     '''QB 64:'''  _A _B _C _D _E _F _G _H _I _K _L _M _N _O _P _R _S _T _U _V _W                <br><br>'''QBasic:'''  A   B   C   D   #E|..."
  • 05:5105:51, 18 April 2022 diff hist +2,385 Main PageNo edit summary