Prompt_Button_Mode - Form
Determines how and if a prompt button will appear within a entry form
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Prompt_Button_Mode
| Access Type | Syntax |
|---|---|
| Read Access: | Get Prompt_Button_Mode to IntegerVariable |
| Write Access: | Set Prompt_Button_Mode to IntegerVariable/Value |
Description
This property determines how and if prompt button objects are added to a form.
| Constant | Meaning |
|---|---|
| PB_PromptOff | The prompt button object is not displayed. |
| PB_PromptOn | The prompt button object is displayed and the message prompt is sent when the button is pressed. |
| PB_PromptAuto | The prompt button object is displayed automatically if a prompt object exists. This is determined at run time. If the prompt_object property is non-zero, a prompt button is displayed. This is the default value for the dbForm class. |
Note that the status of the prompt can be changed at any time. The following example, when added below the Entry_Item code of a dbForm, would toggle the prompt button on and off.
Procedure TogglePromptButton
Set Prompt_Button_Mode to PB_PromptOn
Set Prompt_Button_Mode to PB_PromptOff
End_Procedure
| Col 1 | Col 2 |
|---|---|
| Note: | This property replaces the obsolete property Auto_Create_Prompt_Button. |
See Also