HP OpenVMS Systems Documentation

Content starts here

HP BASIC for OpenVMS
Reference Manual


Begin Index

Contents (summary)
Preface Preface
Chapter 1 Program Elements and Structure
Chapter 2 Compiler Directives
Chapter 3 Statements and Functions
Appendix A ASCII Character Codes
Appendix B HP BASIC Keywords
Appendix C Differences Between Variations of BASIC
  Index
  Figures
  Examples
  Tables


Contents


Preface
Preface Preface
Chapter 1
1 Program Elements and Structure
     1.1     Building Blocks
     1.2     Components of Program Lines
         1.2.1         Line Numbers
             1.2.1.1             Programs with Line Numbers
             1.2.1.2             Programs Without Line Numbers
         1.2.2         Labels
         1.2.3         Statements
             1.2.3.1             Keywords
             1.2.3.2             Single-Statement Lines and Continued Statements
             1.2.3.3             Multistatement Lines
         1.2.4         Compiler Directives
     1.3     BASIC Character Set
     1.4     BASIC Data Types
         1.4.1         Implicit Data Typing
         1.4.2         Explicit Data Typing
         1.4.3         QUAD and IEEE Floating-Point Data Types for 64-Bit Support
     1.5     Variables
         1.5.1         Variable Names
         1.5.2         Implicitly Declared Variables
         1.5.3         Explicitly Declared Variables
         1.5.4         Subscripted Variables and Arrays
         1.5.5         Initialization of Variables
     1.6     Constants
         1.6.1         Numeric Constants
             1.6.1.1             Floating-Point Constants
             1.6.1.2             Integer Constants
             1.6.1.3             Packed Decimal Constants
         1.6.2         String Constants
         1.6.3         Named Constants
             1.6.3.1             Naming Constants Within a Program Unit
             1.6.3.2             Naming Constants External to a Program Unit
         1.6.4         Explicit Literal Notation
         1.6.5         Predefined Constants
     1.7     Expressions
         1.7.1         Numeric Expressions
             1.7.1.1             Floating-Point and Integer Promotion Rules
             1.7.1.2             DECIMAL Promotion Rules
         1.7.2         String Expressions
         1.7.3         Conditional Expressions
             1.7.3.1             Numeric Relational Expressions
             1.7.3.2             String Relational Expressions
             1.7.3.3             Logical Expressions
         1.7.4         Evaluating Expressions
     1.8     Program Documentation
         1.8.1         Comment Fields
         1.8.2         REM Statements
Chapter 2
2 Compiler Directives
    Command 1     %ABORT
    Command 2     %CROSS
    Command 3     %DECLARED
    Command 4     %DEFINE
    Command 5     %IDENT
    Command 6     %IF-%THEN-%ELSE-%END %IF
    Command 7     %INCLUDE
    Command 8     %LET
    Command 9     %LIST
    Command 10     %NOCROSS
    Command 11     %NOLIST
    Command 12     %PAGE
    Command 13     %PRINT
    Command 14     %REPORT
    Command 15     %SBTTL
    Command 16     %TITLE
    Command 17     %UNDEFINE
    Command 18     %VARIANT
Chapter 3
3 Statements and Functions
    Command 19     ABS
    Command 20     ABS%
    Command 21     ASCII
    Command 22     ATN
    Command 23     BUFSIZ
    Command 24     CALL
    Command 25     CAUSE ERROR
    Command 26     CCPOS
    Command 27     CHAIN
    Command 28     CHANGE
    Command 29     CHR$
    Command 30     CLOSE
    Command 31     COMMON
    Command 32     COMP%
    Command 33     CONTINUE
    Command 34     COS
    Command 35     CTRLC
    Command 36     CVT$$
    Command 37     CVTxx
    Command 38     DATA
    Command 39     DATE$
    Command 40     DATE4$
    Command 41     DECIMAL
    Command 42     DECLARE
    Command 43     DEF
    Command 44     DEF*
    Command 45     DELETE
    Command 46     DET
    Command 47     DIF$
    Command 48     DIMENSION
    Command 49     ECHO
    Command 50     EDIT$
    Command 51     END
    Command 52     ERL
    Command 53     ERN$
    Command 54     ERR
    Command 55     ERT$
    Command 56     EXIT
    Command 57     EXP
    Command 58     EXTERNAL
    Command 59     FIELD
    Command 60     FIND
    Command 61     FIX
    Command 62     FNEND
    Command 63     FNEXIT
    Command 64     FOR
    Command 65     FORMAT$
    Command 66     FREE
    Command 67     FSP$
    Command 68     FUNCTION
    Command 69     FUNCTIONEND
    Command 70     FUNCTIONEXIT
    Command 71     GET
    Command 72     GETRFA
    Command 73     GOSUB
    Command 74     GOTO
    Command 75     HANDLER
    Command 76     IF
    Command 77     INKEY$
    Command 78     INPUT
    Command 79     INPUT LINE
    Command 80     INSTR
    Command 81     INT
    Command 82     INTEGER
    Command 83     ITERATE
    Command 84     KILL
    Command 85     LBOUND
    Command 86     LEFT$
    Command 87     LEN
    Command 88     LET
    Command 89     LINPUT
    Command 90     LOC
    Command 91     LOG
    Command 92     LOG10
    Command 93     LSET
    Command 94     MAG
    Command 95     MAGTAPE
    Command 96     MAP
    Command 97     MAP DYNAMIC
    Command 98     MAR
    Command 99     MARGIN
    Command 100     MAT
    Command 101     MAT INPUT
    Command 102     MAT LINPUT
    Command 103     MAT PRINT
    Command 104     MAT READ
    Command 105     MAX
    Command 106     MID$
    Command 107     MIN
    Command 108     MOD
    Command 109     MOVE
    Command 110     NAME...AS
    Command 111     NEXT
    Command 112     NOECHO
    Command 113     NOMARGIN
    Command 114     NUM
    Command 115     NUM2
    Command 116     NUM$
    Command 117     NUM1$
    Command 118     ON ERROR GO BACK
    Command 119     ON ERROR GOTO
    Command 120     ON ERROR GOTO 0
    Command 121     ON...GOSUB
    Command 122     ON...GOTO
    Command 123     OPEN
    Command 124     OPTION
    Command 125     PLACE$
    Command 126     POS
    Command 127     PRINT
    Command 128     PRINT USING
    Command 129     PROD$
    Command 130     PROGRAM
    Command 131     PUT
    Command 132     QUO$
    Command 133     RAD$
    Command 134     RANDOMIZE
    Command 135     RCTRLC
    Command 136     RCTRLO
    Command 137     READ
    Command 138     REAL
    Command 139     RECORD
    Command 140     RECOUNT
    Command 141     REM
    Command 142     REMAP
    Command 143     RESET
    Command 144     RESTORE
    Command 145     RESUME
    Command 146     RETRY
    Command 147     RETURN
    Command 148     RIGHT$
    Command 149     RMSSTATUS
    Command 150     RND
    Command 151     RSET
    Command 152     SCRATCH
    Command 153     SEG$
    Command 154     SELECT
    Command 155     SET PROMPT
    Command 156     SGN
    Command 157     SIN
    Command 158     SLEEP
    Command 159     SPACE$
    Command 160     SQR
    Command 161     STATUS
    Command 162     STOP
    Command 163     STR$
    Command 164     STRING$
    Command 165     SUB
    Command 166     SUBEND
    Command 167     SUBEXIT
    Command 168     SUM$
    Command 169     SWAP%
    Command 170     TAB
    Command 171     TAN
    Command 172     TIME
    Command 173     TIME$
    Command 174     TRM$
    Command 175     UBOUND
    Command 176     UNLESS
    Command 177     UNLOCK
    Command 178     UNTIL
    Command 179     UPDATE
    Command 180     VAL
    Command 181     VAL%
    Command 182     VMSSTATUS
    Command 183     WAIT
    Command 184     WHEN ERROR
    Command 185     WHILE
    Command 186     XLATE$


Previous Next Contents Index