Sharp OZ-707 Operation Manual - Page 23
Enter
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 23 highlights
B $1 ENTER I B$ BYTE The contents of character strings or character variables are displayed from the left edge of the next line. Variables handled by the Card are divided into the following: Variables Numeric variables: Fixed numeric variables (A to Z) Simple numeric variables (AB, C1, etc.) Numeric array variables String variables: Simple string variables (A$, BB$, C2$, etc.) String array variables Numeric variables are further divided into single-precision and double-precision variables. These will be discussed later. Fixed Numeric Variables The first type, fixed numeric variables, are always used by the Card for storing numerical data. They can be thought of as pre-allocated variables. In other words, no matter how much memory your program uses, you will always have at least 26 variables to choose from to store numerical data in. Fixed memory locations are eight bytes long. Simple Variables Simple variable names are specified by alphanumeric characters, such as AB, B$, C8$. Unlike fixed variables, simple variables have no dedicated storage area in memory. The area for simple variables is automatically set aside (within the program and data area) when a simple variable is first used. Since separate memory areas are defined for simple numeric variables and simple string variables even if they have the same name, variables such as AB, AB$ and AB#, for example, may be used at the same time. 34 While alphanumeric characters are usable for simple variable names, the first character of a variable name must always be a letter. Up to 40 characters may be used to define a variable name. Notes: 1. Variable names must not begin with a BASIC command (e.g. PRINTOUT, ONPRINT), but may contain BASIC commands if desired (e.g. APRINT, BONPRINT). 2. Each simple string variable can hold up to 254 characters or symbols. Array Variables Sometimes, it is useful to deal with numbers as an organized group, such as a list of scores or a tax table. In BASIC these groups are called arrays. Arrays can be one-dimensional, like a list, two-dimensional, like a table, or multi-dimensional up to 120 dimensions. Use the DIM (short for dimension) statement to define an array. Arrays must always be declared before they are used (unlike the single-value variables we have been using). The form for the DIMension statement is: DIM array-variable-name (size) where: array-variable-name is a variable that conforms to the normal rules for numeric or array variable names previously discussed. size is the number of storage locations. Note that when you specify a number for the size, you get one more location than you specified. Examples of legal numeric and string DIMension statements are: DIM X(5) DIM AA(24) DIM QUITE5(0} DIM X$(S) DIM AA$(24) DIM QUITES$(O) ~ X (0), X (1), X (2), X (3), X (4), X (5) 35
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/23.png)