Statement and Function Reference

This is the reference section for mvBASIC statements and functions. Each statement or function has its own topic, and each topic contains a description of its purpose, an explanation of its syntax, and at least one example of its use.

Readers who are unfamiliar with mvBASIC should read Format, Data, and Expressions and Overview of mvBASIC Statements and Functions before referring to this section.

The following statements and functions are presented:

$* Statement

$CHAIN Statement

$INCLUDE/$INSERT Statement

= Statement

[ ]= Statement

@ Function

ABORT Statement

ABS Function

ALPHA Function

ASCII Function

ASSIGNED/UNASSIGNED Function

ATTACH TAPE DEVICES/ CHANGE BLOCK-SIZE Statement

AUX ON/AUX OFF Statement

BLOCK/UNBLOCK Statement

BREAK Statement

CALL Statement

CASE Construct

CHAIN Statement

CHANGE Function

CHAR Function

CLEAR Statement

CLEARCOMMON Statement

CLEARDATA Statement

CLEARFILE Statement

CLEARSELECT Statement

COL1 Function

COL2 Function

COMMON Statement

COMPARE Statement

CONNECT/ DISCONNECT Statement

CONSOLE Statement

CONVERT Function

CONVERT Statement

COS Function

COUNT Function

CRT Statement

CRT ON Statement

DATA Statement

DATE Function

DCOUNT Function

DEBUG Statement

DEL Statement

DELETE Function

DELETE Statement

DETACH TAPE DEVICES Statement

DIMENSION Statement

DISCONNECT /CONNECT Statement

DISPLAY Statement

DQUOTE Function

DTX Function

EBCDIC Function

ECHO Statement

END Statement

ENTER Statement

EQUATE Statement

EREPLACE Function

ERROR Statement

EXCHANGE Function

EXECUTE Statement

EXP Function

EXTRACT Function

FIELD Function

FMT Function

FOLD Function

FOOTING Statement

FOR...NEXT Construct

FUNCTION Statement

GET Statement

GETX Statement

GOSUB Statement

GOTO Statement

HEADING Statement

ICONV Function

IF Construct

IFR Statement

IN Statement

INDEX Function

INMAT Function

INPUT Statement

INPUT @ Statement

INPUTCLEAR Statement

INPUT CTRL Statement

INPUT Statement with the ELSE Clause

INPUTERR Statement

INPUTIF Statement

INPUTNULL Statement

INPUTPROMPT Statement

INPUTTRAP Statement

INS Statement

INSERT Function

INT Function

LEN Function

LINESTATUS Function

LN Function

LOCATE Statement

LOCK Statement

LOCK-BEEP Statement

LOOP Construct

MAT Statement

MATBUILD Statement

MATPARSE Statement

MATREAD Statement

MATREADU Statement

MATWRITE Statement

MATWRITEU Statement

MAXIMUM Function

MINIMUM Function

MOD Function

NOT Function

NULL Statement

NUM Function

OCONV Function

ON ERROR Clause

OPEN Statement

PAGE Statement

PRECISION Statement

PRINT Statement

PRINTER Statement

PRINTERR Statement

PROCREAD Statement

PROCWRITE Statement

PROMPT Statement

PWR Function

READ Statement

READB Statement

READF Statement

READNEXT Statement

READT Statement

READTX Statement

READU Statement

READV Statement

READVU Statement

RELEASE Statement

REM Function

REM Statement

REMOVE Statement

REPLACE Function

RETURN Statement

RETURNING Clause

REWIND Statement

RND Function

RQM Statement

SELECT Statement

SEND Statement

SENDBREAK Statement

SENDX Statement

SENTENCE Function

SEQ Function

SIN Function

SLEEP Statement

SORT Function

SOUNDEX Function

SPACE Function

SPOOLQ Statement

SQRT Function

SQUOTE Function

STATUS Function

STOP Statement

STR Function

SUBROUTINE Statement

SUM Function

SUMMATION Function

SWAP Function

SYSTEM Function

TA Function

TA Statement

TAN Function

TIME Function

TIMEDATE Function

TIMEOUT Statement

TRIM Function

TRIMB Function

TRIMF Function

UNASSIGNED/ASSIGNED Function

UNBLOCK/BLOCK Statement

UNLOCK Statement

WAKEUP Statement

WEOF Statement

WRITE Statement

WRITEB Statement

WRITEBU Statement

WRITEF Statement

WRITEFU Statement

WRITET Statement

WRITEU Statement

WRITEV Statement

WRITEVU Statement

XTD Function

Tokens Supported For System Delimiters

mvBase supports run-time efficient tokens called @AM, @FM, @VM and @SM for the attribute delimiter, the field delimiter, the value delimiter, and the sub-value delimiter, respectively.

Token Name

Delimiter

Value

@AM

Attribute mark

CHAR(254)

@FM

Field mark

CHAR(254)

@VM

Value mark

CHAR(253)

@SM

Subvalue mark

CHAR(252)

These new tokens may be used anywhere CHAR( ) may be used, including EQUATE statements.

See Also

mvBase mvBASIC User Reference Guide Overview

Syntax Notations

Introduction to mvBASIC

Creating mvBASIC Programs

Format, Data and Expressions

Overview of mvBASIC Statements and Functions

Using the mvBASIC Debugger

O/S Interoperability Commands

Appendix A: Error Messages

Appendix B: List Of ASCII Codes

Appendix C: mvBASIC Program Examples