Syntax: mid$(text$, start[, length])
Type: function
returns a section of a string starting from 'start' for 'length' characters.
If 'length' is not used then all of the characters until the end of the string
are used.
MID$ with len = 0 should return an empty string (v1c)
e.g.
See also instr, mid$ (statement).
Syntax: mid$(text$, start[, length]) = value$
Type: statement
Allows part of a string to be replaced.
e.g.
See also mid$ (function).
Syntax: mkd$(number as double)
Type: function
Encodes a double-precision floating point number to a string. Useful with
field.
small example on syntax:
See also mki$, mkl$, mks$, CVD, CVI, CVL, CVS.
Syntax: mkdir folder$
Type: statement
Category: File
Makes a folder on the local file system.
e.g.
makes a folder called 'data' in the current folder.
See also shell, rmdir.
Type: function
Encodes a 32bit integer number to a string. Useful with
field.
small example on syntax:
See also mkd$, mkl$,
mks$, CVD, CVI, CVL,
CVS.
Type: function
Encodes a long number to a string. Useful with field.
Since long's in FB are the same as Integers, this is the same as
MKI$.
small example on syntax:
See also mkd$, mki$,
mks$, CVD, CVI, CVL,
CVS.
Type: function
Encodes a single-precision floating point number to a string. Useful with
field.
small example on syntax:
See also mkd$, mki$,
mkl$, CVD, CVI, CVL,
CVS.
Syntax: a mod b
Category: math
Returns the remainder of a divided by b (modulus).
e.g.
Syntax: multikey(scancode)
Type: function
Category: Gfx
Function to detect multiple keypresses.
'scancode' is the DOS hardware scancode of the key you want to query for.
This function lets you detect the immediate status of any key at any time; the
returned value is -1 if key is pressed, 0 otherwise. The keyboard input buffer
is not disabled while you use MULTIKEY; that is, pressed keys will be stored and
subsequently returned by your next call to INKEY$. This
means you have to empty INKEY$ when you finish using
MULTIKEY:
Keeping INKEY$ to work while you use MULTIKEY allows more
flexibility and can be useful to detect CHR$(255)+"X" combo
returned on window close button click. Pay attention: this function does only
work if you are in gfx mode; it does NOT work in console mode. For a list of
accepted scancodes, see
DOS
keyboard scancodes.
Example:
See also screen (graphics),
INKEY$.
Differences:
New to FreeBasic