[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here

HP BASIC for OpenVMS
User Manual


Previous Contents Index

Chapter 7
7 Data Definition
     7.1     Declarative Statements
     7.2     Data Types
     7.3     Setting the Default Data Type and Size
     7.4     Declaring Variables
     7.5     Declaring Named Constants
     7.6     Operations with Multiple Data Types
     7.7     Allocating Dynamic and Static Storage
         7.7.1         COMMON Statement
         7.7.2         MAP Statement
             7.7.2.1             Single Maps
             7.7.2.2             Multiple Maps
         7.7.3         FILL Items
         7.7.4         Using COMMON and MAP Statements in Subprograms
         7.7.5         Dynamic Mapping
Chapter 8
8 Creating and Using Data Structures
     8.1     RECORD Statement
         8.1.1         Grouping RECORD Components
         8.1.2         RECORD Variants
         8.1.3         Accessing RECORD Components
Chapter 9
9 Program Control
     9.1     Statement Modifiers
         9.1.1         IF Modifier
         9.1.2         UNLESS Modifier
         9.1.3         FOR Modifier
         9.1.4         UNTIL Modifier
         9.1.5         WHILE Modifier
         9.1.6         Nesting Modifiers
     9.2     Loops
         9.2.1         FOR...NEXT Loops
         9.2.2         WHILE...NEXT Loops
         9.2.3         UNTIL...NEXT Loops
         9.2.4         Nesting Loops
     9.3     Unconditional Branching (GOTO Statement)
     9.4     Conditional Branching
         9.4.1         ON...GOTO...OTHERWISE Statement
         9.4.2         IF...THEN...ELSE Statement
         9.4.3         SELECT...CASE Statement
     9.5     EXIT and ITERATE Statements
     9.6     Executing Local Subroutines
         9.6.1         GOSUB and RETURN Statements
         9.6.2         ON...GOSUB...OTHERWISE Statement
     9.7     Suspending and Halting Program Execution
         9.7.1         SLEEP Statement
         9.7.2         WAIT Statement
         9.7.3         STOP Statement
         9.7.4         END Statement
Chapter 10
10 Functions
     10.1     Built-In Functions
         10.1.1         Numeric Functions
             10.1.1.1             ABS Function
             10.1.1.2             INT and FIX Functions
             10.1.1.3             SIN, COS, and TAN Functions
             10.1.1.4             SQR Function
             10.1.1.5             LOG10 Function
             10.1.1.6             EXP Function
             10.1.1.7             RND Function
         10.1.2         Data Conversion Functions
             10.1.2.1             ASCII Function
             10.1.2.2             CHR$ Function
         10.1.3         String Numeric Functions
             10.1.3.1             FORMAT$ Function
             10.1.3.2             NUM$ and NUM1$ Functions
             10.1.3.3             VAL% and VAL Functions
         10.1.4         String Arithmetic Functions
             10.1.4.1             SUM$ and DIF$ Functions
             10.1.4.2             QUO$, PLACE$, and PROD$ Functions
         10.1.5         Date and Time Functions
             10.1.5.1             DATE$ Function
             10.1.5.2             DATE4$ Function
             10.1.5.3             TIME$ Function
             10.1.5.4             TIME Function
         10.1.6         Terminal Control Functions
             10.1.6.1             CTRLC and RCTRLC Functions
             10.1.6.2             ECHO and NOECHO Functions
             10.1.6.3             INKEY$ Function
     10.2     User-Defined Functions
         10.2.1         Single-Line DEF Functions
         10.2.2         Multiline DEF Functions
Chapter 11
11 String Handling
     11.1     Overview of Strings
     11.2     Using Dynamic Strings
     11.3     Using Fixed-Length Strings
     11.4     Using String Virtual Arrays
     11.5     Assigning String Data
         11.5.1         LET Statement
         11.5.2         LSET Statement
         11.5.3         RSET Statement
         11.5.4         MID$ Assignment Statement
     11.6     Manipulating String Data with String Functions
         11.6.1         LEN Function
         11.6.2         POS Function
         11.6.3         SEG$ Function
         11.6.4         MID$ Function
         11.6.5         STRING$ Function
         11.6.6         SPACE$ Function
         11.6.7         TRM$ Function
         11.6.8         EDIT$ Function
     11.7     Manipulating String Data with Multiple Maps


Previous Next Contents Index