HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
80 Chapter3
INTRODUCTION TO FORMS DESIGN
FORMS FILE
created. The command should then be deleted from the processing specifications area. If
any error is encountered in executing the command, it is displayed in the upper area of the
Field Menu screen.
#COPYFROM
When #COPYFROM
oldfilename
is executed, the processing specifications (if any) in the file
specified by
oldfilename
are copied into the processing specifications area of the field.
Press
Enter after the command executes (successfully) to save the copied processing
specifications for the field.
Since this command is used to retrieve the processing specifications, it cannot be used if
specifications already exist for the field. If any error is encountered in executing the
command, it is displayed in the upper area of the Field Menu screen.
The copy option on the Main Menu provides yet another method of modifying a form file.
This useful option allows you to copy an entire form from the current forms file or from
another forms file. The copied form is created by FORMSPEC as a new form that is an
exact replica of the existing form. The form being copied must be given a name unique to
the current forms file. The copied form can then be displayed and modified to suit your
design.
The copy option does not copy save fields from one file to another; you must recreate the
necessary save fields if you copy a form from a forms file other than the current file. Also,
form family relationships are not maintained when forms are copied from one file to
another. You may re-establish form family relationships using the relate option on the
Main Menu. Refer to the "Main Menu" description for more information.
Most of the modifications can also be made using FORMSPEC in batch mode. (See Section
7 for more information.)
Error Messages
The following error messages may be displayed when executing the #COPYTO newfilename
command:
• If the file specified by newfilename already exists, the following message is displayed
and no copying is done:
File already exists!
• If the syntax of the command is not proper, the following message is displayed:
Check syntax: #COPYTO
newfilename
.
• If the file attributes check for a new file results in an error, the following message is
displayed:
New file check failed!
The specified file should be a non-existent permanent file.
• If the file cannot be opened, the following message is displayed:
Cannot create new file!
The following error messages may be displayed when executing the #COPYFROM
oldfilename
command: