Changing HP 260 Form Files to JOINFORM Files [ HP Business BASIC/XL Migration Guide ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Migration Guide
Changing HP 260 Form Files to JOINFORM Files
To migrate FORMS/260 files to JOINFORM files, run BBCT250.PUB.SYS. Use
the OPTION JOINFORM command to specify that you want to migrate the forms
to JOINFORM format. Then use the FORM command to migrate your files.
For information about the FORM command, see chapter 19, "Migrating
BASIC/260 Files."
The changes listed in table 21-2 are made automatically by the migration
aid.
NOTE Manually change GET FORM statements that do not use a string
literal ("formfile") or a string variable ("formfile$").
Table 21-1. JOINFORM Changes
---------------------------------------------------------------------------------------------
| | |
| HP 260 | HP Business BASIC/XL |
| | |
---------------------------------------------------------------------------------------------
| | |
| GET FORM F$ | OPEN FORM F$+":"+F$ |
| | |
| CLEAR FORM | CLEAR FORM |
| | |
| EXIT FORM | CLOSE FORM; REMAIN |
| | |
| DELETE FORM | CLOSE FORM |
| | |
| CURSOR IF#N, | CURSOR IFLD(N), |
| CURSOR OF#N, | CURSOR SETFLD(N) |
| CURSOR CF#N. | CURSOR OFLD(N), |
| | CURSOR SETOFLD(N) |
| | CURSOR CFLD(N). |
| | CURSOR SETCFLD(N) |
| | |
| TFNUM | TFLD (see NOTE) |
| | |
---------------------------------------------------------------------------------------------
NOTE TFLD returns the field number of the last input field read. The
actual cursor position and the fieldnum returned by TFLD are only
identical if you walked through the fields using the RETURN key.
The TAB key moves the cursor to the next field (or the previous
field when you press BACKTAB) in screen order. This is not
recognized by TFLD since TAB and BACKTAB are local to the terminal.
TFLD does not recognize cursor movement using the cursor
positioning keys.
The following statements are the same in both versions of BASIC. When
JOINFORM forms are active, these statements interact.
DISP INPUT LENTER PRINT
ENTER LDISP LINPUT PRINT USING
In JOINFORM, forms are stored within files. Several forms can be stored
within the same file, and a form does not usually have the same name as
the file it is stored in. When you use the migration aid to change your
FORMS/260 files to JOINFORM files, you supply an input_file and an
output_file. output_file will be the name of your JOINFORM file and
input_file will be the name of a form within the JOINFORM file.
For example, if your FORMS/260 form was called "MYFORMIN" and you name
the JOINFORM file "MYFORM", then your JOINFORM file "MYFORM" will contain
a file called "MYFORMIN".
MPE/iX 5.0 Documentation