General Component
Fnd_Gen_CurrentFormType
Fnd_Gen_CurrentFormType ({form type}) -> Number
Parameters
| Parameter | Type | Description |
|---|---|---|
| form type | Longint | Form type constant |
| Function result | Number | Form type constant |
Description
If no parameters are passed, Fnd_Gen_CurrentFormType returns the type of the currently displayed form. Here are the values that this routine might return: Value Constant Description 0 Fnd_Gen_NoForm No window 1 Fnd_Gen_UnknownForm Unknown form type 2 Fnd_Gen_OutputForm An output form 3 Fnd_Gen_InputForm An input form 4 Fnd_Gen_PreferencesForm The Preferences window 5 Fnd_Gen_AboutForm The About box
Use this method to determine the contents of the front most window. This gives you a way to determine if an input form or an output form is front most. Constants are also included to determine if other Foundation windows are front most. Use this routine from methods called from the Administration dialog, the Print dialog, and the Special Functions dialog to determine if the user is viewing a record or selection of records. For example, it may be important to a printing routine to know at runtime if the user is viewing an input form or an output form. You can pass a number to this routine from your own non-modal windows if you want to later be able to determine if they are front most.
Extracted source text
Fnd_Gen_CurrentFormType ({form type}) ➔ Number
Parameter Type Description
form type Longint Form type constant
Function result Number Form type constant
If no parameters are passed, Fnd_Gen_CurrentFormType returns the type of the currently displayed
form. Here are the values that this routine might return:
Value Constant Description
0 Fnd_Gen_NoForm No window
1 Fnd_Gen_UnknownForm Unknown form type
2 Fnd_Gen_OutputForm An output form
3 Fnd_Gen_InputForm An input form
4 Fnd_Gen_PreferencesForm The Preferences window
5 Fnd_Gen_AboutForm The About box
Use this method to determine the contents of the front most window. This gives you a way to determine
if an input form or an output form is front most. Constants are also included to determine if other
Foundation windows are front most.
Use this routine from methods called from the Administration dialog, the Print dialog, and the Special
Functions dialog to determine if the user is viewing a record or selection of records. For example, it may
be important to a printing routine to know at runtime if the user is viewing an input form or an output
form.
You can pass a number to this routine from your own non-modal windows if you want to later be able to
determine if they are front most.