HP 3000 Manuals

Lesson 1: User Created Variable Names [ MPE V to MPE XL: Getting Started ] MPE/iX 5.0 Documentation


MPE V to MPE XL: Getting Started

Lesson 1:  User Created Variable Names 

The first step in creating a user variable is to select a name for it.
This name can be as simple as the letter X, or several lines long.  It
must follow these simple rules:

 *  It must start with either an alphabetic or an underbar character.

 *  It must contain only alphanumeric or underbar characters; nothing
    else.

 *  It can be from 1 to 255 characters long.

 *  It can have no spaces.

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                 ACCEPTABLE                  |                UNACCEPTABLE                 |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                                             |                                             |
| PACIFIC_TIME                                | #@%_$&                                      |
|                                             |                                             |
| A                                           | MAX#                                        |
|                                             |                                             |
| _007                                        | 123                                         |
|                                             |                                             |
| NUM_array                                   | error flag                                  |
|                                             |                                             |
| employee4                                   | 4employee                                   |
|                                             |                                             |
| A6_B12_X                                    | A6_B12+X                                    |
|                                             |                                             |
|                                             |                                             |
---------------------------------------------------------------------------------------------

Exercise 

1.   Which of the following are acceptable names for user created
     variables?

       a.  $DOLLARS

       b.  FRED_FLINTSTONE

       c.  4FSNE1

       d.  _BED ROCK

       e.  Z

       f.  INSPECTOR!

       g.  _JAMES_BOND

       h.  RINGO*

       i.  The_quick_red_fox_jumped_over_the_lazy_b

       j.  _!@#$%&*()

       k.  LOG&LOG



MPE/iX 5.0 Documentation