SetStatus(Status As Integer)

FormDef object

Typically, this method is used together with CreateFormDefFromFile when you are automating the process of creating form definitions. It sets the status of the form definition. Valid statuses are:

0

Inactive

1

Active

2

Deactivated

A form definition can only be set to Inactive if there are no forms of this type in the database. A form definition can only be set to Active or Deactivated if there are no errors in the form definition.

The return value is 0 if all went well, 1 if the provided Status was invalid, 2 if there were errors in the form definition and 3 if there were forms of this type in the database.

The FormDef object