1 | | GetExitCode |
| 1 | = !GetExitCode = |
| 2 | |
| 3 | {{{ |
| 4 | int CForm::GetExitCode(void) |
| 5 | }}} |
| 6 | |
| 7 | == Parameters == |
| 8 | |
| 9 | None |
| 10 | |
| 11 | == Return Value == |
| 12 | |
| 13 | currently set exit code value. |
| 14 | |
| 15 | == Remarks == |
| 16 | |
| 17 | GetExitCode may be used after a SetExitCode call has been performed to determine the exit value that will be returned when the FORM_RUN ends. This would usually only be useful during a form done event. |
| 18 | |
| 19 | == Example == |
| 20 | |
| 21 | {{{ |
| 22 | // m_pForm is a pointer already set for the form we want to end |
| 23 | if(m_pForm->GetExitCode() == 123) |
| 24 | { |
| 25 | DEBUG_MSG("Exit code is 123\n"); |
| 26 | } |
| 27 | }}} |