Version 4 (modified by 6 years ago) ( diff ) | ,
---|
WriteData
void CForm::WriteData(void)
Parameters
- WriteData does not accept any parameters
Return Value
The WriteData function does not return a value.
Remarks
Input forms automatically write the changes when the ENTER key is pressed. However if a button event is provided to complete the form or do some other processing it may be needed to call the WriteData function.
Example
EVENT(InputDone) { if(nData == FORM_DONE_ESCAPE || nData == FORM_DONE_LEFT_ARROW) { if(pForm->IsChanged() == true) { if(WaitPrompt(LANG(STR_SAVE_CHANGES)) == true) { pForm->WriteData(); } } } }
See Also
See Also
Note:
See TracWiki
for help on using the wiki.