Compaq BASIC for OpenVMS
Alpha and VAX Systems
User Manual


Previous Contents Index

Chapter 11
11 Functions
     11.1     Built-In Functions
         11.1.1         Numeric Functions
             11.1.1.1             ABS Function
             11.1.1.2             INT and FIX Functions
             11.1.1.3             SIN, COS, and TAN Functions
             11.1.1.4             SQR Function
             11.1.1.5             LOG10 Function
             11.1.1.6             EXP Function
             11.1.1.7             RND Function
         11.1.2         Data Conversion Functions
             11.1.2.1             ASCII Function
             11.1.2.2             CHR$ Function
         11.1.3         String Numeric Functions
             11.1.3.1             FORMAT$ Function
             11.1.3.2             NUM$ and NUM1$ Functions
             11.1.3.3             VAL% and VAL Functions
         11.1.4         String Arithmetic Functions
             11.1.4.1             SUM$ and DIF$ Functions
             11.1.4.2             QUO$, PLACE$, and PROD$ Functions
         11.1.5         Date and Time Functions
             11.1.5.1             DATE$ Function
             11.1.5.2             DATE4$ Function
             11.1.5.3             TIME$ Function
             11.1.5.4             TIME Function
         11.1.6         Terminal Control Functions
             11.1.6.1             CTRLC and RCTRLC Functions
             11.1.6.2             ECHO and NOECHO Functions
             11.1.6.3             INKEY$ Function
     11.2     User-Defined Functions
         11.2.1         Single-Line DEF Functions
         11.2.2         Multiline DEF Functions
Chapter 12
12 String Handling
     12.1     Overview of Strings
     12.2     Using Dynamic Strings
     12.3     Using Fixed-Length Strings
     12.4     Using String Virtual Arrays
     12.5     Assigning String Data
         12.5.1         LET Statement
         12.5.2         LSET Statement
         12.5.3         RSET Statement
         12.5.4         MID$ Assignment Statement
     12.6     Manipulating String Data with String Functions
         12.6.1         LEN Function
         12.6.2         POS Function
         12.6.3         SEG$ Function
         12.6.4         MID$ Function
         12.6.5         STRING$ Function
         12.6.6         SPACE$ Function
         12.6.7         TRM$ Function
         12.6.8         EDIT$ Function
     12.7     Manipulating String Data with Multiple Maps
Chapter 13
13 Program Segmentation
     13.1     BASIC Subprograms
         13.1.1         SUB Subprograms
         13.1.2         FUNCTION Subprograms
     13.2     Declaring Subprograms and Parameters
     13.3     Compiling Subprograms
     13.4     Invoking Subprograms
         13.4.1         Invoking SUB Subprograms
         13.4.2         Invoking FUNCTION Subprograms
     13.5     Returning Program Status
Chapter 14
14 File Input and Output
     14.1     Record Formats
         14.1.1         Fixed-Length Records
         14.1.2         Variable-Length Records
         14.1.3         Stream Records
     14.2     File Organizations
         14.2.1         Terminal-Format Files
         14.2.2         Sequential Files
         14.2.3         Relative Files
         14.2.4         Indexed Files
         14.2.5         Virtual Files
     14.3     Record Access and Record Context
     14.4     I/O and Record Buffers
     14.5     Accessing the Contents of a Record
         14.5.1         MAP Statement
         14.5.2         MAP DYNAMIC and REMAP Statements
         14.5.3         MOVE Statement
     14.6     File and Record Operations
         14.6.1         Opening Files
         14.6.2         Creating Virtual Array Files
         14.6.3         Locating Records
         14.6.4         Reading Records
         14.6.5         Writing Records
         14.6.6         Deleting Records
         14.6.7         Updating Records
         14.6.8         Controlling Record Access
         14.6.9         Gaining Access to Locked Records
         14.6.10         Accessing Records by Record File Address
         14.6.11         Transferring Data to Terminal-Format Files
         14.6.12         Resetting the File Position
         14.6.13         Truncating Files
         14.6.14         Renaming Files
         14.6.15         Closing Files and Ending I/O
         14.6.16         Deleting Files
     14.7     File-Related Functions
         14.7.1         FSP$ Function
         14.7.2         RECOUNT Function
         14.7.3         STATUS, VMSSTATUS, and RMSSTATUS Functions
     14.8     OPEN Statement Options
         14.8.1         BUCKETSIZE Clause
         14.8.2         BUFFER Clause
         14.8.3         CONNECT Clause
         14.8.4         CONTIGUOUS Clause
         14.8.5         DEFAULTNAME Clause
         14.8.6         EXTENDSIZE Clause
         14.8.7         FILESIZE Clause
         14.8.8         NOSPAN Clause
         14.8.9         RECORDTYPE Clause
         14.8.10         TEMPORARY Clause
         14.8.11         USEROPEN Clause
         14.8.12         WINDOWSIZE Clause


Previous Next Contents Index