LOTUSSCRIPT/COM/OLE CLASSES


Accessing a form
Example

You can access existing forms in a database as follows:


The NotesForm class provides access to the following form properties:
PropertyData typeDescription
AliasesArray of strings(Read-only) Aliases of the form
FieldsArray of strings(Read-only) Names of all the fields of the form
FormUsersArray of strings(Read-write) Contents of the $FormUsers field
HttpURL String(Read-only) The HTTP URL of a form.
IsSubformBoolean(Read-only) True if the form is a subform
NameString(Read-only) Name of the form
NotesURL String(Read-only) The Notes URL of a form.
Parent NotesDatabase(Read-only) Database that contains a Form object. For COM only.
ProtectReadersBoolean(Read-write) Protects $Readers items from being overwritten by replication
ProtectUsersBoolean(Read-write) Protects $FormUsers items from being overwritten by replication
ReadersArray of strings(Read-write) Contents of the $Readers field
In addition, you can get the type of a field on the form with GetFieldType. See Type in NotesItem for the valid field types. You can remove an existing form from the database with Remove method.

Example
See Also