[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here

HP BASIC for OpenVMS
User Manual


Begin Index

Contents (summary)
Preface Preface
Part 1 Developing BASIC Programs on OpenVMS Systems
Chapter 1 Overview of HP BASIC
Chapter 2 Developing HP BASIC Programs
Chapter 3 Using the OpenVMS Debugger with BASIC
Part 2 HP BASIC Programming Concepts
Chapter 4 BASIC Concepts and Elements
Chapter 5 Simple Input and Output
Chapter 6 Arrays
Chapter 7 Data Definition
Chapter 8 Creating and Using Data Structures
Chapter 9 Program Control
Chapter 10 Functions
Chapter 11 String Handling
Chapter 12 Program Segmentation
Chapter 13 File Input and Output
Chapter 14 Formatting Output with the PRINT USING Statement
Chapter 15 Handling Run-Time Errors
Chapter 16 Compiler Directives
Chapter 17 Data Representation
Part 3 Using HP BASIC Features on OpenVMS Systems
Chapter 18 Advanced File Input and Output
Chapter 19 Using BASIC in the Common Language Environment
Chapter 20 Libraries and Shareable Images
Chapter 21 Using CDD/Repository with BASIC
Chapter 22 Using DECwindows Motif Bindings with BASIC
Appendix A Compile-Time Error Messages
Appendix B Run-Time Messages
Appendix C Optional Programming Productivity Tools
  Index
  Figures
  Examples
  Tables


Contents


Preface
Preface Preface
Part 1
Part 1 Developing BASIC Programs on OpenVMS Systems
Chapter 1
1 Overview of HP BASIC
     1.1     Language Constructs Supported
     1.2     Advantages on OpenVMS
Chapter 2
2 Developing HP BASIC Programs
     2.1     Compiling an HP BASIC Program
         2.1.1         BASIC Command
         2.1.2         BASIC Command Qualifiers
         2.1.3         Declining Qualifiers and Their Recommended Replacements
         2.1.4         Compiler Listings
     2.2     Linking an HP BASIC Program
         2.2.1         LINK Command
         2.2.2         LINK Command Qualifiers
         2.2.3         Linker Input Files
         2.2.4         Linker Output Files
         2.2.5         Using an Object Module Library
         2.2.6         Linker Error Messages
     2.3     Running an HP BASIC Program
         2.3.1         Improving Run-Time Performance of HP BASIC Programs
             2.3.1.1             Data Items
             2.3.1.2             Qualifiers
             2.3.1.3             Statements
Chapter 3
3 Using the OpenVMS Debugger with BASIC
     3.1     Overview of the Debugger
     3.2     Compiling and Linking to Prepare for Debugging
     3.3     Viewing Your Source Code
         3.3.1         Noscreen Mode
         3.3.2         Screen Mode
     3.4     Controlling and Monitoring Program Execution
         3.4.1         Starting and Resuming Program Execution
         3.4.2         Determining the Current Location of the Program Counter
         3.4.3         Suspending Program Execution
         3.4.4         Tracing Program Execution
         3.4.5         Monitoring Changes in Variables
     3.5     Examining and Manipulating Data
         3.5.1         Displaying the Values of Variables
         3.5.2         Changing the Values of Variables
         3.5.3         Evaluating Expressions
     3.6     Stepping Into BASIC Routines
         3.6.1         Controlling Symbol References
     3.7     Sample Debugging Session
     3.8     Hints for Using the OpenVMS Debugger
Part 2
Part 2 HP BASIC Programming Concepts
Chapter 4
4 BASIC Concepts and Elements
     4.1     Line Numbers
         4.1.1         Programs with Line Numbers
         4.1.2         Programs Without Line Numbers
         4.1.3         Labels
         4.1.4         Continuation of Long Program Statements
     4.2     Identifying Program Units
     4.3     BASIC Character Set
     4.4     Program Documentation
     4.5     Declarations and Data Types
         4.5.1         Implicit Data Typing
         4.5.2         Explicit Data Typing
     4.6     Constants
     4.7     Variables
         4.7.1         Floating-Point Variables
         4.7.2         Integer Variables
         4.7.3         Packed Decimal Variables
         4.7.4         String Variables
         4.7.5         Subscripted Variables
         4.7.6         Initialization of Variables
     4.8     Keywords and Reserved Words
     4.9     Operands, Operators, and Expressions
     4.10     Assignment Statements
Chapter 5
5 Simple Input and Output
     5.1     Program Input
         5.1.1         Providing Input Interactively
             5.1.1.1             INPUT Statement
             5.1.1.2             INPUT LINE and LINPUT Statements
             5.1.1.3             Enabling and Disabling the Question Mark Prompt
         5.1.2         Providing Input from the Source Program
             5.1.2.1             READ and DATA Statements
             5.1.2.2             RESTORE Statement
     5.2     Program Output
         5.2.1         Print Zones---The Comma and the Semicolon
         5.2.2         Output Format for Numbers and Strings
     5.3     Terminal-Format Files
         5.3.1         Opening and Closing a Terminal-Format File
         5.3.2         Writing Records to a Terminal-Format File
Chapter 6
6 Arrays
     6.1     Overview of Arrays
     6.2     Creating Arrays Explicitly
         6.2.1         Creating Arrays with the DECLARE Statement
         6.2.2         Creating Arrays with the DIM Statement
             6.2.2.1             Declarative DIM Statements
             6.2.2.2             Executable DIM Statements
         6.2.3         Creating Arrays with the COMMON Statement
         6.2.4         Creating Arrays with the MAP Statement
     6.3     Creating Arrays Implicitly
     6.4     Determining the Bounds of an Array
     6.5     Assigning and Displaying Array Values
         6.5.1         Assigning Values with the LET Statement
         6.5.2         Listing Array Elements with the PRINT Statement
     6.6     Using MAT Statements
         6.6.1         MAT Statement
         6.6.2         MAT READ Statement
         6.6.3         MAT INPUT [#] Statement
         6.6.4         MAT LINPUT [#] Statement
         6.6.5         MAT PRINT [#] Statement
         6.6.6         Matrix I/O Functions (NUM and NUM2)
     6.7     Matrix Operators
         6.7.1         Arithmetic Matrix Operations
             6.7.1.1             Assignment
             6.7.1.2             Addition and Subtraction
             6.7.1.3             Multiplication
         6.7.2         Matrix Functions
             6.7.2.1             TRN Function
             6.7.2.2             INV Function
             6.7.2.3             DET Function


Previous Next Contents Index