Syntax: hex$(decimal)
Type: function
returns the hexidecimal value of a decimal number from integer form to a
string. Hexidecimal values contain 0-9, and A-F.
e.g.
will return "D431".
See also bin$, oct$.
HIBYTE - intrinsic macros
Type: statement
IF...THEN is a mechanism to only execute code if a condition is true, and can
provide alternative code to execute based on more conditions. Basicly it is a
way to make decisions.
END IF to end the single line IF's to make porting of complex C macros easier to
be done (v1c)
the structure is like so:
e.g. here is a simple "guess the number" game using if...then for a decision.
See also #if, select case.
Syntax: a imp b
Type: operator
Category: logic
A bitwise operator which is the same as (not a)
or b.
See also
Logical operators.
Syntax: inkey$
Type: function
Category: Input
Returns the last key pushed on the keyboard.
e.g.
See also input, input$,
line input.
Differences:
Between QB:
with extended codes, first char will be 255, not 0.
Syntax: inp &h3c9
Type: function
Category: Gfx
Function for VGA port input emulation.
This function emulates the QB INP function for VGA port access; the only port
value this function accepts is &h3C9. You do not normally need this function;
use 8bit or higher color depth modes and PALETTE instead.
See also PALETTE, OUT,
WAIT, screen (graphics).
Differences:
Between QB:
This command is only supported to emulate palette reading using the gfxlib
library. The only port that can be used is &h3c9 (palette port). This is only
included to support qb45 programs that use inp for palette manipulation.
Because of this, any other port will return 0.
Reason: User mode apps can't access IO ports directly.
Type: statement
Category: Input
Type: statement
Category: File
INPUT # reads data items from a sequential device or file and assigns them
to variables.
INPUT #filenumber%, variablelist
_ The data items in the file should appear just as they would if you
were entering data in response to an INPUT statement. Separate
numbers with a space, carriage return, line feed, or comma. Separate
strings with a carriage return or line feed (leading spaces are
ignored). The end-of-file character will end either a numeric or
string entry.
Type: keyword
Category: file mode
A file mode used with open to read lines of text from the
file.
See also output.
Type: function
Category: Input
Syntax: instr ([start,] subject, search)
Type: function
Returns the position in the string 'subject' for the first occurence of the
string 'search'. Instr optionally only starts searching past the position 'start'.
If nothing is found it returns 0.
e.g.
Will return "4".
See also mid$ (function).
Syntax: int(decimal number)
Type: function
If the input is an integer it returns the integer, otherwise returns the next integer less than the input. e.g. int(4.9) will return 4, and int(-1.3) will return -2.
Type: data type
32-bit signed whole-number data type.
See also uinteger,
data types.
Differences:
Between QB:
Now is 32-bit rather than 16-bit due to the 32-bit processors of today.
Type: keyword
Category: control flow
See select case.