IB Statements

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(Input/output statements)
 
(27 intermediate revisions not shown)
Line 1: Line 1:
======Numeric Operators======
======Numeric Operators======
-
[[{{PAGENAME}}/operations|addition +]]<br/>
+
[[{{PAGENAME}}/operations#addition |addition +]]<br/>
-
[[{{PAGENAME}}/operations|subtraction-]]<br/>
+
[[{{PAGENAME}}/operations#subtraction|subtraction-]]<br/>
-
[[{{PAGENAME}}/operations|multiplication *]]<br/>
+
[[{{PAGENAME}}/operations#multiplication |multiplication *]]<br/>
-
[[{{PAGENAME}}/operations|division /]]<br/>
+
[[{{PAGENAME}}/operations#division |division /]]<br/>
-
[[{{PAGENAME}}/operations|modulo MOD]]<br/>
+
[[{{PAGENAME}}/operations#modulo |modulo MOD]]<br/>
 +
 
======String operator======
======String operator======
[[{{PAGENAME}}/operations#String Operation (Concatenation)|string +]]
[[{{PAGENAME}}/operations#String Operation (Concatenation)|string +]]
Line 13: Line 14:
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|GT or >]]<br/>
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|GT or >]]<br/>
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|LT or <]]<br/>
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|LT or <]]<br/>
 +
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|SOUNDEX]]<br/>
 +
[[{{PAGENAME}}/operations#Relational Operation (IF/THEN/ELSE)|CONTAINS]]<br/>
======Logical operators======
======Logical operators======
[[{{PAGENAME}}/operations#Logical Operations|AND]]<br/>
[[{{PAGENAME}}/operations#Logical Operations|AND]]<br/>
-
[[{{PAGENAME}}/logical|OR]]<br/>
+
[[{{PAGENAME}}/operations#Logical Operations|OR]]<br/>
-
[[{{PAGENAME}}/logical|XOR]]<br/>
+
[[{{PAGENAME}}/operations#Logical Operations|XOR]]<br/>
=====Initialization statements=====
=====Initialization statements=====
Line 23: Line 26:
[[{{PAGENAME}}/clear|CLEARLOCAL]]<br/>
[[{{PAGENAME}}/clear|CLEARLOCAL]]<br/>
[[{{PAGENAME}}/clear|CLEARCOMMON]]<br/>
[[{{PAGENAME}}/clear|CLEARCOMMON]]<br/>
 +
[[{{PAGENAME}}/ClearFormat|ClearFormat]]<BR/>
=====Assignment statements=====
=====Assignment statements=====
[[{{PAGENAME}}/let|LET]]<br/>
[[{{PAGENAME}}/let|LET]]<br/>
Line 37: Line 41:
[[{{PAGENAME}}/unlock|UNLOCK]]<br/>
[[{{PAGENAME}}/unlock|UNLOCK]]<br/>
[[{{PAGENAME}}/access|ACCESS]]<br/>
[[{{PAGENAME}}/access|ACCESS]]<br/>
 +
[[{{PAGENAME}}/SearchFile|SearchFile - C32]]<BR/>
 +
=====Input/output statements=====
=====Input/output statements=====
[[{{PAGENAME}}/input|INPUT]]<br/>
[[{{PAGENAME}}/input|INPUT]]<br/>
Line 54: Line 60:
[[{{PAGENAME}}/log|LOG]]<BR/>
[[{{PAGENAME}}/log|LOG]]<BR/>
[[{{PAGENAME}}/msgbox|MSGBOX]]<BR/>
[[{{PAGENAME}}/msgbox|MSGBOX]]<BR/>
 +
[[{{PAGENAME}}/InputFile and PrintFile|InputFile and PrintFile - C32]]<BR/>
 +
[[{{PAGENAME}}/GetFormat|GetFormat and SetFormat - C32]]<BR/>
 +
[[{{PAGENAME}}/ClearFormat|ClearFormat]]<BR/>
 +
[[{{PAGENAME}}/StripFormat|StripFormat]]<BR/>
 +
=====Encryption/decryption statements=====
=====Encryption/decryption statements=====
[[{{PAGENAME}}/base256|BASE256]]<BR/>
[[{{PAGENAME}}/base256|BASE256]]<BR/>
Line 64: Line 75:
[[{{PAGENAME}}/if|IF/THEN]]<BR/>
[[{{PAGENAME}}/if|IF/THEN]]<BR/>
[[{{PAGENAME}}/if|IF/THEN/ELSE/ENDIF]]<BR/>
[[{{PAGENAME}}/if|IF/THEN/ELSE/ENDIF]]<BR/>
-
[[{{PAGENAME}}/|FOR/NEXT]]<BR/>
+
[[{{PAGENAME}}/for|FOR/NEXT]]<BR/>
[[{{PAGENAME}}/do|DO/LOOP]]<BR/>
[[{{PAGENAME}}/do|DO/LOOP]]<BR/>
[[{{PAGENAME}}/select|SELECT/CASE/ENDSELECT]]<BR/>
[[{{PAGENAME}}/select|SELECT/CASE/ENDSELECT]]<BR/>
Line 71: Line 82:
[[{{PAGENAME}}/pause|PAUSE]]<BR/>
[[{{PAGENAME}}/pause|PAUSE]]<BR/>
[[{{PAGENAME}}/wakeup|WAKEUP]]<BR/>
[[{{PAGENAME}}/wakeup|WAKEUP]]<BR/>
 +
[[{{PAGENAME}}/UserDefinedProcs|User Defined Procedures -C32]]<BR/>
 +
=====Program activation statements=====
=====Program activation statements=====
[[{{PAGENAME}}/run|RUN]]<BR/>
[[{{PAGENAME}}/run|RUN]]<BR/>
Line 84: Line 97:
[[{{PAGENAME}}/eventsub|EVENTSUB]]<BR/>
[[{{PAGENAME}}/eventsub|EVENTSUB]]<BR/>
[[{{PAGENAME}}/eventwait|EVENTWAIT]]<BR/>
[[{{PAGENAME}}/eventwait|EVENTWAIT]]<BR/>
 +
[[{{PAGENAME}}/SetTimer|SETTIMER]]<BR/>
=====Subroutine control statements=====
=====Subroutine control statements=====
[[{{PAGENAME}}/gosub|GOSUB]]<BR/>
[[{{PAGENAME}}/gosub|GOSUB]]<BR/>
Line 103: Line 117:
[[{{PAGENAME}}/escapesub|ESCAPESUB]]<BR/>
[[{{PAGENAME}}/escapesub|ESCAPESUB]]<BR/>
[[{{PAGENAME}}/again|AGAIN]]<BR/>
[[{{PAGENAME}}/again|AGAIN]]<BR/>
-
[[{{PAGENAME}}/excpparm|EXCP=]]<BR/>
+
[[{{PAGENAME}}/excp|EXCP]]<BR/>
-
[[{{PAGENAME}}/excpsub|EXCPSUB=]]<BR/>
+
[[{{PAGENAME}}/noexcp|NOEXCP - C32]]<BR/>
 +
[[{{PAGENAME}}/excpsub|EXCPSUB]]<BR/>
=====Numeric functions=====
=====Numeric functions=====
[[{{PAGENAME}}/abs|ABS]]<BR/>
[[{{PAGENAME}}/abs|ABS]]<BR/>
Line 123: Line 138:
[[{{PAGENAME}}/sqrt|SQRT]]<BR/>
[[{{PAGENAME}}/sqrt|SQRT]]<BR/>
[[{{PAGENAME}}/testbit|TESTBIT]]<BR/>
[[{{PAGENAME}}/testbit|TESTBIT]]<BR/>
-
=====| String functions=====
+
===== String functions=====
[[{{PAGENAME}}/adjust|ADJUSTL/ADJUSTR]]<BR/>
[[{{PAGENAME}}/adjust|ADJUSTL/ADJUSTR]]<BR/>
[[{{PAGENAME}}/aschex|ASCHEX]]<BR/>
[[{{PAGENAME}}/aschex|ASCHEX]]<BR/>
Line 169: Line 184:
[[{{PAGENAME}}/dosfc|DOSFC]]<BR/>
[[{{PAGENAME}}/dosfc|DOSFC]]<BR/>
[[{{PAGENAME}}/dosms|DOSMS]]<BR/>
[[{{PAGENAME}}/dosms|DOSMS]]<BR/>
-
[[{{PAGENAME}}/dosrw|DOSRW]]<BR/>
+
[[{{PAGENAME}}/DOSRW|DOSRW]]<BR/>
 +
 
=====Compiler directives=====
=====Compiler directives=====
[[{{PAGENAME}}/use|USE]]<BR/>
[[{{PAGENAME}}/use|USE]]<BR/>

Latest revision as of 21:01, 27 July 2012

Contents

Numeric Operators

addition +
subtraction-
multiplication *
division /
modulo MOD

String operator

string +

Relation operators

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

Logical operators

AND
OR
XOR

Initialization statements

CLEAR
CLEARLOCAL
CLEARCOMMON
ClearFormat

Assignment statements

LET
SECURE

File and directory control statements

FILE
CREATE
ERASE
CLEARFILE
RENAME
OPEN
CLOSE
LOCK
UNLOCK
ACCESS
SearchFile - C32

Input/output statements

INPUT
INPUT(legacy)
AUTOINPUT
WAIT
PRINT
READ
INQUIRE
EXTRACT
WRITE
INSERT
POSITION
REWRITE
UPDATE
DELETE
LOG
MSGBOX
InputFile and PrintFile - C32
GetFormat and SetFormat - C32
ClearFormat
StripFormat

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
User Defined Procedures -C32

Program activation statements

RUN
ACTIVATE
INTERRUPT

Program termination statements

STOP
END
ERROR
TERMINATE
KILL

Event-driven programming

EVENTSUB
EVENTWAIT
SETTIMER

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
NOEXCP - C32
EXCPSUB

Numeric functions

ABS
ASC
FPT
HEXDEC
IHEXDEC
INT
LEN
MSGBOX
NOT
NUM
POS
RND
RPOS
SETBIT
SGN
SQRT
TESTBIT

String functions

ADJUSTL/ADJUSTR
ASCHEX
BINARY
CHKSUM
CHR
DECHEX
DECIHEX
HEXASC
INTEL
INTELD
LCASE
MID
MOVE
PAD
PASSWORD
PCOMM
RSUB
STR
STRING
STRIP
STRIPL
STRIPR
SUB
SWAP
UCASE

Date functions

DATE2NUM
DATETONUM
NUM2DATE
NUMTODATE

File and directory-related functions

FIRST
KEY
LAST
PATH
PREV
RECNUM

Status functions

DSTAT
FSTAT
PSTAT
STS

DOS function calls

DOSFC
DOSMS
DOSRW

Compiler directives

USE
ENDUSE
SET
UNSET
.IF
.IFDEF
.IFNDEF
.ELSE
.ENDIF

Personal tools