1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00

Compare commits

...

10 commits

Author SHA1 Message Date
Cory Smith bb9e75ada2 Delete _Sidebar.md 2022-12-26 13:45:39 -06:00
Cory Smith f71dacb042 Delete _STRICMP.md 2022-12-26 13:42:45 -06:00
Cory Smith 693849bd67 Delete _STRCMP.md 2022-12-26 13:39:43 -06:00
Cory Smith 2a59fa83d6 Delete _SOURCE.md 2022-12-26 13:36:35 -06:00
Cory Smith 5185fd67c1 Delete _STARTDIR$.md 2022-12-26 13:32:38 -06:00
Cory Smith ac0206444b Update _config.yml 2022-12-26 13:21:05 -06:00
Cory Smith c335666d26 Update _config.yml 2022-12-26 13:16:35 -06:00
Cory Smith bb1c938ac9 Update _config.yml 2022-12-26 13:11:45 -06:00
Cory Smith 5fadea0976 Update _config.yml 2022-12-26 13:07:23 -06:00
Cory Smith e0c5db45e4 Update _config.yml 2022-12-26 13:03:10 -06:00
6 changed files with 1 additions and 129 deletions

View file

@ -3,4 +3,5 @@ title: QB64.com
description: QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.
include:
- _mem.md
- "_*.md"

View file

@ -1,47 +0,0 @@
The [_SOURCE](_SOURCE) statement establishes the image SOURCE using a handle created by [_LOADIMAGE](_LOADIMAGE), [_NEWIMAGE](_NEWIMAGE) or [_COPYIMAGE](_COPYIMAGE).
## Syntax
> [_SOURCE](_SOURCE) handle&
## Description
* The handle is a [LONG](LONG) integer value from the [_SOURCE (function)](_SOURCE-(function)) function or a handle created by [_NEWIMAGE](_NEWIMAGE).
* If the handle is designated as 0, it refers to the current [SCREEN](SCREEN) image.
* A source image can only supply information to a program. [POINT](POINT) and [GET (graphics statement)](GET-(graphics-statement)) might require a source other than the one currently active.
## Example(s)
```vb
SCREEN 13
a = _NEWIMAGE(320,200,13)
_DEST a
PSET (100, 100), 15
_SOURCE a
_DEST 0
PRINT POINT(100, 100)
```
```text
15
```
> *Explanation:* Create a new image with handle 'a', then use [_DEST](_DEST) to define the image to draw on. Draw a pixel then set the source to 'a' and use [POINT](POINT) to show what color is in that position. White (15) and is the color set with [PSET](PSET). Use [_DEST](_DEST) 0 for the screen to display the results.
### More examples
See the examples in:
* [Bitmaps](Bitmaps)
* [SAVEIMAGE](SAVEIMAGE)
* [SaveIcon32](SaveIcon32)
## See Also
* [_DEST](_DEST)
* [_SOURCE (function)](_SOURCE-(function))
* [POINT](POINT), [GET (graphics statement)](GET-(graphics-statement))

View file

@ -1,38 +0,0 @@
The [_STARTDIR$](_STARTDIR$) function returns the user's working directory when the program was started.
## Syntax
> callPath$ = [_STARTDIR$](_STARTDIR$)
## Description
The user's working directory depends on how the program was launched. Note that these are ultimately controlled by the launching environment, so might differ in non-standard setups.
* If the program was run from a graphical file manager, _STARTDIR$ will be the path to the directory of the binary file.
* If launched from the command line, _STARTDIR$ is the shell's current working directory, as manipulated by the 'cd' command.
* If launched via a shortcut on Windows _STARTDIR$ will be the "Start in" property, which defaults to the location of the shortcut's target file.
The value of [_STARTDIR$](_STARTDIR$) may differ from [_CWD$](_CWD$) even at program start, because QB64 program change their current directory to the binary's location. _STARTDIR$ is the directory inherited from the user's environment, while [_CWD$](_CWD$) will start off as the location of the program binary file. Because files are opened relative to [_CWD$](_CWD$), this can be useful for programs that expect to open e.g. graphical or sound assets, but problematic for programs that want to interpret paths supplied by the user as relative to the user's current directory. In the latter case, add a 'CHDIR _STARTDIR$' to the top of the program. This will change back to the working directory inherited from the environment.
## Availability
* Version 1.000 and up.
## Example(s)
Showcasing QB64 path functions:
```vb
$CONSOLE:ONLY
_DEST _CONSOLE
SHELL "cd"
PRINT _CWD$
PRINT _STARTDIR$
SYSTEM
```
## See Also
* [_CWD$](_CWD$)
* [SHELL](SHELL)

View file

@ -1,17 +0,0 @@
The [_STRCMP](_STRCMP) function compares the relationship between two strings, comparing upper or lower case.
## Syntax
> comparison% = [_STRCMP](_STRCMP)(string1$, string2$)
## Description
* Function returns -1 when string1$ is less than string2$, 0 when equal or 1 when string1$ is greater than string2$.
* Upper case letters are valued less than lower case letters in the [ASCII](ASCII) evaluation.
## See Also
* [_STRICMP](_STRICMP)
* [STR$](STR$)
* [STRING](STRING)
* [ASCII](ASCII)

View file

@ -1,17 +0,0 @@
The [_STRICMP](_STRICMP) function compares the relationship between two strings, ignoring upper or lower case letters.
## Syntax
> comparison% = [_STRICMP](_STRICMP)(string1$, string2$)
## Description
* Function returns -1 when string1$ is less than string2$, 0 when equal or 1 when string1$ is greater than string2$.
* Alphabet comparisons will be evaluated without regard to the letter case in the 2 strings.
## See Also
* [_STRCMP](_STRCMP)
* [STR$](STR$)
* [STRING](STRING)
* [ASCII](ASCII)

View file

@ -1,10 +0,0 @@
Navigation
* [Discord Invitation](https://discord.gg/A3HmUe2mv8)
* [QB64 FAQ](QB64-FAQ)
* [Keywords (Alphabetical)](Keyword-Reference---Alphabetical)
* [Keywords (By Usage)](Keyword-Reference---By-Usage)
* [Keywords (Unsupported)](Keywords-currently-not-supported-by-QB64)
* [List of ERROR Codes](ERROR-Codes)
* [Known Issues](Known-Issues)
* [Articles and Tutorials](https://github.com/QB64Official/qb64/wiki#articles-and-tutorials)
* [Online/Free Books](https://github.com/QB64Official/qb64/wiki#onlinefree-books)