| 1 | = FORM_RUN = |
| 2 | Runs a form. |
| 3 | |
| 4 | {{{ |
| 5 | int FORM_RUN(formName name); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * formName - name of the form |
| 11 | |
| 12 | == Return Value == |
| 13 | |
| 14 | * Returns a result value based on the input |
| 15 | |
| 16 | == Remarks == |
| 17 | |
| 18 | == Examples == |
| 19 | |
| 20 | {{{ |
| 21 | void IDScreen(void) |
| 22 | { |
| 23 | string strID = ""; |
| 24 | float fVal = 0.0; |
| 25 | |
| 26 | FORM_INIT(ID, EventIDShow, NULL, NULL, NULL, nFormFlgShowHelp); |
| 27 | FORM_ADD_INPUT(ID, ID, 0, 50, "ID: ", 10, 0, 0, NULL, strID, 0, NULL, "Enter the ID"); |
| 28 | FORM_ADD_INPUT(ID, Val, 0, 80, "Value: ", 10, 0, 9999, NULL, fVal, 0, NULL, "Enter the value"); |
| 29 | |
| 30 | FORM_SHOW(ID); |
| 31 | FORM_RUN(ID); |
| 32 | FORM_HIDE(ID); |
| 33 | |
| 34 | // strID and fVal now contain the entered data |
| 35 | } |
| 36 | |
| 37 | EVENT(IDShow) |
| 38 | { |
| 39 | ClearLCD(); |
| 40 | DisplayText(0, 0, "ID/Value Screen"); |
| 41 | return 0; |
| 42 | } |
| 43 | }}} |
| 44 | |
| 45 | |
| 46 | == See Also == |
| 47 | |
| 48 | * FORM_INIT |
| 49 | * FORM_ADD_INPUT |
| 50 | * FORM_ADD_BUTTON |
| 51 | * FORM_RUN |
| 52 | |