SheerPower
®
4GL
A Guide to the SheerPower Language
Begin
Index
Contents (summary)
Preface
Preface
Chapter 1
Getting Started in SheerPower
Chapter 2
Debugging and Experimenting in SP4GL Console Window
Chapter 3
Program Elements in SheerPower
Chapter 4
Data Types in SheerPower
Chapter 5
Assigning Variables and Defining Arrays
Chapter 6
Built-in Functions
Chapter 7
Printing and Displaying Data
Chapter 8
Data Entry User Interface
Chapter 9
Input Dialogbox - Creating GUI Forms with SheerPower
Chapter 10
Loops, Conditionals, and Chaining
Chapter 11
Set and Ask Statements
Chapter 12
SheerPower and DDE
Chapter 13
Exception Handling
Chapter 14
File Handling
Chapter 15
Data Structure Statements
Chapter 16
Database Setup
Chapter 17
SheerPower and ODBC
Chapter 18
SheerPower Internet Services (SPINS) Webserver
Chapter 19
Writing Network Applications and Accessing Devices
Chapter 20
SheerPower Web Scripting
Chapter 21
Calling Routines Written In Other Languages
Appendix A
Coding Principles and Standards
Appendix B
Reserved Words
Appendix C
SheerPower's Error and Exception Messages
Appendix D
ASCII Character Set
Appendix E
SheerPower Database Interfaces
Appendix F
Keystrokes for SheerPower Rapid Development Environment
Appendix G
Input Dialogbox--supported HTML tags
Appendix H
SPDEV Menu Item Descriptions
Appendix I
Developing Professional Applications with SheerPower
Appendix J
Sample SheerPower Programs Included with SheerPower 4GL Install
Appendix K
Generation Language
Appendix L
Troubleshooting the CGI Interface
Appendix M
SheerPower and Program Segmentation
Appendix N
Advanced Record Systems (ARS) Utilities
Index
Examples
Tables
Contents
Preface
Preface
Preface
Chapter 1
1
Getting Started in SheerPower
1.1
Getting Started
1.2
Creating a New Program in SheerPower
1.2.1
Menu Program Example
1.2.2
Saving a Program in SheerPower
1.2.3
File Backup Versions
1.2.4
Purge Old Backup Files
1.2.5
Deploying the Menu Program Example
1.3
Deploying and Running a Program in SheerPower
1.3.1
SheerPower Deployment of Portable Runnable Applications
1.3.2
Running a SheerPower Program
1.4
Program Examples
1.5
Developing Professional Applications with SheerPower
1.6
Open Existing Files in SPDEV
1.7
Default file location and file types
1.8
SheerPower Program Error Messages
1.9
SP4GL Console Window
1.9.1
SP4GL Console Window Keystrokes
1.10
Getting Help in SheerPower
1.11
Conventions Used in this Manual
1.12
Presentation of Command and Statement Information
1.13
Other SheerPower Features
Chapter 2
2
Debugging and Experimenting in SP4GL Console Window
2.1
SheerPower Commands and Statements
2.1.1
Recalling Previous Commands in SheerPower
2.1.2
Using the
[Tab]
Key Features
2.1.2.1
Command Completion in SheerPower
2.1.2.2
Spelling Correction of Commands in SheerPower
2.1.2.3
Expanding Abbreviations
2.2
Creating a Sample Program
2.3
Errors and Exceptions
2.4
Using Commands in SP4GL Console Window
2.4.1
BUILD
2.4.2
RUN
2.4.3
LIST
2.4.4
HALT Statement
2.4.5
SHOW FILES
2.4.6
GO
2.5
Debug Facilities
2.5.1
DEBUG ON
2.5.2
DEBUG OFF
2.5.3
TRACING APPLICATION LOGIC FLOW
2.5.4
STATS ON
2.5.5
STATS OFF
2.5.6
LIST STATS
2.5.7
BREAK Statement
2.5.8
STEP
2.6
SP4GL Console Window Keystrokes
Chapter 3
3
Program Elements in SheerPower
3.1
Storing SheerPower Programs
3.2
SheerPower Program Elements
3.2.1
PROGRAM
3.2.2
SheerPower Reserved Words
3.3
SheerPower Program Structure
3.3.1
END
3.3.2
STOP
3.4
ROUTINE/END ROUTINE
3.4.1
Understanding variable "namespace" when using routines
3.4.2
More on Routines
3.4.3
EXIT ROUTINE
3.4.4
REPEAT ROUTINE
3.5
Passing Optional Parameters to Routines
3.5.1
Parameter Passing Using WITH and RETURNING
3.5.2
Private Variables in Routines
3.5.3
Passing Parameters with Private Variables
3.5.4
Error Messages when Passing Routine Parameters
3.6
Program Lines
3.6.1
Continuing Program Lines and Implied Continuation
3.6.1.1
Implied Continuation
3.7
Comments
3.7.1
(//) comment_text
3.7.2
Routine Headers
3.7.3
The (//) with Line Continuation
3.8
Debug Comments in SPDEV
3.9
Program and Compile Directives
3.9.1
%COMPILE
3.9.2
%MESSAGE
3.9.3
%MESSAGE ERROR
3.9.4
%INCLUDE
3.9.5
%INCLUDE CONDITIONAL
Chapter 4
4
Data Types in SheerPower
4.1
Data Types
4.1.1
Integers
4.1.2
Real Numbers
4.1.3
String Data
4.2
BOOLEAN
4.3
Expressions
4.4
Constants
4.4.1
Numeric Constants
4.4.2
String Constants
4.5
Variables
4.5.1
Arrays
4.5.2
Substrings
4.6
Structure References
4.7
Multiple Occurrence Fields
4.8
Compound Expressions
4.8.1
Numeric Expressions
4.8.2
String Expressions
4.8.2.1
Conditional Expressions
4.8.3
Conditional Numeric Expressions
4.9
Performing Relational Operations on Strings
4.9.1
Logical Operators
4.9.2
Bit Manipulation
4.10
Order of Evaluation
4.11
Using Parenthesis for Clarity
Previous
Next
Contents
Index