version 2004
CREATE USER FORM (aTable; form; userForm)
Parameter | Type | Description | |
aTable | Table | Source form table | |
form | String | Source table form name | |
userForm | String | Name of new user form |
Description
The CREATE USER FORM command duplicates the 4D table form whose table and name are passed as parameters and creates a new user form named userForm.
Once created, the userForm form can be modified using the EDIT FORM command. This command allows you to create X user forms (for example, various report forms) from a single source form.
See Also
DELETE USER FORM, EDIT FORM, INPUT FORM, LIST USER FORMS, OUTPUT FORM, Overview of user forms.
System Variables or Sets
The OK variable returns 1 if the operation is executed properly; otherwise, it returns 0.
Error Handling
An error is generated if:
form is already a user form,
the name of userForm is the same as the name of the source form or an existing user form,
the user cannot access the form because they do not have the proper access rights.
You can intercept these errors with the error-handling method installed by the ON ERR CALL command.