FORM_IS_UPDATED
Macro to call specified form IsUpdated() function
FORM_IS_UPDATED(f)
Parameters
- f = form
Return Value
This function returns true if the form is updated. False if no changes were made.
Remarks
IN_EVENT_HIDE_FORM is a macro to simplify the calling of IsUpdated.
#define FORM_IS_UPDATED(f) form##f.IsUpdated()
Examples
FORM_INIT(EditTruck, EventEditIDShow, NULL, NULL, EventTruckDone, nFormFlgNone); FORM_ADD_INPUT(EditTruck, Name, 0, FONT_HEIGHT * 2, truckPrompt.c_str(), KEYLEN(DB_TRUCK), 0, 0, NULL, id[DB_TRUCK], 0, NULL, NULL ); FORM_ADD_INPUT(EditTruck, Rfid, 0, FONT_HEIGHT * 4, LANG(STR_RFID_PROMPT), 5, 0, 0, NULL, rfid, 0, NULL, NULL); FORM_SHOW(EditTruck); FORM_RUN(EditTruck); FORM_HIDE(EditTruck); if (FORM_IS_UPDATED(EditTruck) != false) { // Save changes }
See Also
Last modified
7 years ago
Last modified on 04/13/18 08:16:56
Note:
See TracWiki
for help on using the wiki.