KeepExternalValidFormDefs (KeepFormDefs As Boolean)

Available in FORMS 5-3 SP2 and later.

Job object

This method extends the scope of the AddExternalValidFormDef method so that you can use it on JobStarted or (if you are processing batches) BatchLoaded. Note that in this case only the form definitions that you added using AddExternalValidFormDef are applied. Other form definitions included in the job are ignored, and the list of accepted form definitions is not reset until you call ClearExternalValidFormDefs.

If you never call KeepExternalValidFormdefs, AddExternalValidFormDef works as described.

Example:

Dim KeepFormDefs As Boolean

Dim job As Object

Set job = Application.Job

KeepFormDefs = true

job.ClearExternalValidFormDefs()

job.KeepExternalValidFormDefs(KeepFormDefs)

job.AddExternalValidFormDef("SJ3")

GetFormDefName

The Job object