IB Statements

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(Input/output statements)
(Runtime exception control statements)
Line 98: Line 98:
[[{{PAGENAME}}/errorto|ERRORTO]]<BR/>
[[{{PAGENAME}}/errorto|ERRORTO]]<BR/>
[[{{PAGENAME}}/errorsub|ERRORSUB]]<BR/>
[[{{PAGENAME}}/errorsub|ERRORSUB]]<BR/>
 +
[[{{PAGENAME}}/escapeto|ESCAPETO]]<BR/>
 +
[[{{PAGENAME}}/escapesub|ESCAPESUB]]<BR/>
 +
[[{{PAGENAME}}/again|AGAIN]]<BR/>
 +
[[{{PAGENAME}}/excpparm|EXCP=]]<BR/>
 +
[[{{PAGENAME}}/excpsub|EXCPSUB=]]<BR/>
 +
=====Numeric functions=====
 +
[[{{PAGENAME}}/abs|ABS]]<BR/>
 +
[[{{PAGENAME}}/asc|ASC]]<BR/>
 +
[[{{PAGENAME}}/fpt|FPT]]<BR/>
 +
[[{{PAGENAME}}/hexdec|HEXDEC]]<BR/>
-
[escapeto.htm ESCAPETO]</pre><pre>[escapesub.htm ESCAPESUB]
+
[ihexdec|IHEXDEC]
-
[again.htm AGAIN]
+
[int|INT]</pre><pre>[len|LEN]
-
[excpparm.htm EXCP=]
+
[msgboxfunc|MSGBOX]
-
[excpsub.htm EXCPSUB=]
+
[not|NOT]
-
Numeric functions</pre><pre>[abs.htm ABS]
+
[num|NUM]
-
[asc.htm ASC]
+
[pos|POS]
-
 
+
-
[fpt.htm FPT]
+
-
 
+
-
[hexdec.htm HEXDEC]
+
-
 
+
-
[ihexdec.htm IHEXDEC]
+
-
 
+
-
[int.htm INT]</pre><pre>[len.htm LEN]
+
-
 
+
-
[msgboxfunc.htm MSGBOX]
+
-
 
+
-
[not.htm NOT]
+
-
 
+
-
[num.htm NUM]
+
-
 
+
-
[pos.htm POS]
+
RND</pre><pre>RPOS
RND</pre><pre>RPOS
-
[setbit.htm SETBIT]
+
[setbit|SETBIT]
-
[sgn.htm SGN]
+
[sgn|SGN]
-
[sqrt.htm SQRT]
+
[sqrt|SQRT]
-
[testbit.htm TESTBIT]</pre><pre>| String functions
+
[testbit|TESTBIT]</pre><pre>| String functions
-
[adjust.htm ADJUSTL/ADJUSTR]
+
[adjust|ADJUSTL/ADJUSTR]
-
[aschex.htm ASCHEX]
+
[aschex|ASCHEX]
-
[binary.htm BINARY]</pre><pre>[chksum.htm CHKSUM]
+
[binary|BINARY]</pre><pre>[chksum|CHKSUM]
-
[chr.htm CHR]
+
[chr|CHR]
-
[dechex.htm DECHEX]
+
[dechex|DECHEX]
-
[decihex.htm DECIHEX]
+
[decihex|DECIHEX]
-
[hexasc.htm HEXASC]
+
[hexasc|HEXASC]
-
[intel.htm INTEL]</pre><pre>[inteld.htm INTELD]
+
[intel|INTEL]</pre><pre>[inteld|INTELD]
-
[lcase.htm LCASE]
+
[lcase|LCASE]
-
[mid.htm MID]
+
[mid|MID]
-
[move.htm MOVE]
+
[move|MOVE]
-
[pad.htm PAD]
+
[pad|PAD]
-
[password.htm PASSWORD]</pre><pre>[pcomm.htm PCOMM]
+
[password|PASSWORD]</pre><pre>[pcomm|PCOMM]
-
[rsub.htm RSUB]
+
[rsub|RSUB]
-
[str.htm STR]
+
[str|STR]
-
[string.htm STRING]
+
[string|STRING]
-
[strip.htm STRIP]
+
[strip|STRIP]
-
[stripl.htm STRIPL]</pre><pre>[stripr.htm STRIPR]
+
[stripl|STRIPL]</pre><pre>[stripr|STRIPR]
-
[sub.htm SUB]
+
[sub|SUB]
-
[swap.htm SWAP]
+
[swap|SWAP]
-
[ucase.htm UCASE]
+
[ucase|UCASE]
-
Date functions</pre><pre>[date2num.htm DATE2NUM]
+
Date functions</pre><pre>[date2num|DATE2NUM]
-
[datetonum.htm DATETONUM]
+
[datetonum|DATETONUM]
-
[num2date.htm NUM2DATE]
+
[num2date|NUM2DATE]
-
[numtodate.htm NUMTODATE]
+
[numtodate|NUMTODATE]
-
File and directory-related functions</pre><pre>[first.htm FIRST]
+
File and directory-related functions</pre><pre>[first|FIRST]
-
[key.htm KEY]
+
[key|KEY]
-
[last.htm LAST]
+
[last|LAST]
-
[path.htm PATH]
+
[path|PATH]
-
[prev.htm PREV]</pre><pre>[recnum.htm RECNUM]
+
[prev|PREV]</pre><pre>[recnum|RECNUM]
Status functions
Status functions
-
[dstat.htm DSTAT]
+
[dstat|DSTAT]
-
[fstat.htm FSTAT]
+
[fstat|FSTAT]
-
[pstat.htm PSTAT]</pre><pre>[sts.htm STS]
+
[pstat|PSTAT]</pre><pre>[sts|STS]
DOS function calls
DOS function calls
-
[dosfc.htm DOSFC]
+
[dosfc|DOSFC]
-
[dosms.htm DOSMS]
+
[dosms|DOSMS]
-
[dosrw.htm DOSRW]</pre><pre>Compiler directives
+
[dosrw|DOSRW]</pre><pre>Compiler directives
-
[use.htm USE]
+
[use|USE]
-
[enduse.htm ENDUSE]
+
[enduse|ENDUSE]
-
[set.htm SET]
+
[set|SET]
-
[unset.htm UNSET]</pre><pre>[dotif.htm .IF]
+
[unset|UNSET]</pre><pre>[dotif|.IF]
-
[dotifdef.htm .IFDEF]
+
[dotifdef|.IFDEF]
-
[dotifndef.htm .IFNDEF]
+
[dotifndef|.IFNDEF]
-
[dotelse.htm .ELSE]
+
[dotelse|.ELSE]
-
[[dotendif.htm .ENDIF]]
+
[[dotendif|.ENDIF]]

Revision as of 19:47, 15 September 2008

Contents

Numeric Operators

addition +
subtraction-
multiplication *
division /
modulo MOD

String operator

string +

Relation operators

EQ or =
NE or NOT=
GT or >
LT or <

Logical operators

AND
OR
XOR

Initialization statements

CLEAR
CLEARLOCAL
CLEARCOMMON

Assignment statements

LET
SECURE

File and directory control statements

FILE
CREATE
ERASE
CLEARFILE
RENAME
OPEN
CLOSE
LOCK
UNLOCK
ACCESS

Input/output statements

INPUT
INPUT(legacy)
AUTOINPUT
WAIT
PRINT
READ
INQUIRE
EXTRACT
WRITE
INSERT
POSITION
REWRITE
UPDATE
DELETE
LOG
MSGBOX

Encryption/decryption statements

BASE256
BASE64
ENCRYPT
DECRYPT

General program control statements=====

GOTO
ON/GOTO
IF/THEN
IF/THEN/ELSE/ENDIF
FOR/NEXT
DO/LOOP
SELECT/CASE/ENDSELECT
BREAK
CONTINUE
PAUSE
WAKEUP

Program activation statements

RUN
ACTIVATE
INTERRUPT

Program termination statements

STOP
END
ERROR
TERMINATE
KILL

Event-driven programming

EVENTSUB
EVENTWAIT

Subroutine control statements

GOSUB
RETURN
POP
POPALL
MESSAGESUB

Subprogram control statements

ENTER
EXIT
EXITTO
EXITALL

Internet gateway control statement

CONTROL

Runtime exception control statements

ERRORTO
ERRORSUB
ESCAPETO
ESCAPESUB
AGAIN
EXCP=
EXCPSUB=

Numeric functions

ABS
ASC
FPT
HEXDEC

[ihexdec|IHEXDEC]

[int|INT]
[len|LEN]

[msgboxfunc|MSGBOX]

[not|NOT]

[num|NUM]

[pos|POS]

RND
RPOS

[setbit|SETBIT]

[sgn|SGN]

[sqrt|SQRT]

[testbit|TESTBIT]
| String functions

[adjust|ADJUSTL/ADJUSTR]

[aschex|ASCHEX]

[binary|BINARY]
[chksum|CHKSUM]

[chr|CHR]

[dechex|DECHEX]

[decihex|DECIHEX]

[hexasc|HEXASC]

[intel|INTEL]
[inteld|INTELD]

[lcase|LCASE]

[mid|MID]

[move|MOVE]

[pad|PAD]

[password|PASSWORD]
[pcomm|PCOMM]

[rsub|RSUB]

[str|STR]

[string|STRING]

[strip|STRIP]

[stripl|STRIPL]
[stripr|STRIPR]

[sub|SUB]

[swap|SWAP]

[ucase|UCASE]

Date functions
[date2num|DATE2NUM]

[datetonum|DATETONUM]

[num2date|NUM2DATE]

[numtodate|NUMTODATE]

File and directory-related functions
[first|FIRST]

[key|KEY]

[last|LAST]

[path|PATH]

[prev|PREV]
[recnum|RECNUM]

Status functions

[dstat|DSTAT]

[fstat|FSTAT]

[pstat|PSTAT]
[sts|STS]

DOS function calls

[dosfc|DOSFC]

[dosms|DOSMS]

[dosrw|DOSRW]
Compiler directives

[use|USE]

[enduse|ENDUSE]

[set|SET]

[unset|UNSET]
[dotif|.IF]

[dotifdef|.IFDEF]

[dotifndef|.IFNDEF]

[dotelse|.ELSE]

[[dotendif|.ENDIF]]
Personal tools