wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/WriteData

WriteData

void CForm::WriteData(void)

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

Last modified 5 years ago Last modified on 05/17/19 15:34:06
Note: See TracWiki for help on using the wiki.