User contributions for SMcNeill

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

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..." current
  • 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$..." current
  • 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..."
(newest | oldest) View (newer 250 | ) (20 | 50 | 100 | 250 | 500)