|
ds_GetFormEvents |
|---|
| ds_GetFormEvents (formID; events) <- errorCode | |||
|---|---|---|---|
| Parameter | Type | Description | |
| -> | formID | Integer | Form ID |
| <- | theEvents | Long Integer | List of events |
| <- | errorCode | Long Integer | Error Code (0 = no error) |
Returns in theEvents the list of checked events in the form. theEvents is returned as a Long Integer with every bit indicating if the event is checked or not. You must use the 4D constants of the theme "Form events" to get the state of a particular event. A value of -1 means "all events checked". Think about declaring theEvents as a long integer.
| Sample Code: How to know is the On Load event is active for a particular form? |
|---|
| C_LONGINT($events) |
| $err:=ds_GetFormEvents (formID;$events) |
| IF ($events ?? On Load) |
| ... On Load is checked ... |
| END IF |