HTBasic Help
×
Menu
Index

Define the CALL Interface

 
The first step in building a CSUB is to define the CALL interface. This amounts to defining the number, type, and order of the CSUB arguments. They are defined using the SUB program line syntax and may be of type REAL, INTEGER, COMPLEX, or String. They may be simple variables or arrays.
 
Using the HTBasic SUB statement syntax, define the CSUB arguments that are required. INTEGER A, specifies a simple integer variable, whereas INTEGER A(*) specifies an integer array. A$, specifies a simple string variable, whereas A$(*) specifies a string array. This information will be used to create the CSUB prototype in the next step.