<form_item> Defines a form item.

Command Tree: | Form \ Form Item
. |
Syntax: | <text>("FormID", "ItemLabel", "ItemType", "ItemDefValue", "ItemVariable")
FormID | A text identifier of the form (for example, "FM1"). All the items of the same form must have the same identifier.
ItemLabel | The label that appears above the control in the form window.
ItemType | Item type. Can be one of these: "LIST" - list (combo) box selection "EDIT" - edit control (single line) "CHECK" - check box button "LINE" - static line "TEXT" - static text
ItemDefValue | Defines default value (the value that initially appears in the form window).
ItemfVariable | Variable that receives the data (value) the user inserts.
. |
. |
Example: | <#> This example shows how to use form commands <#> <commands_only_on> <form_item>("FM1","This is a simple calculator for: + - * /","TEXT","0","") <form_item>("FM1","","LINE","0","") <form_item>("FM1","Operand 1:","EDIT","0","vOper1") <form_item>("FM1","Operation:","LIST","Plus|Minus|Multiply|Divide","vOperation") <form_item>("FM1","Operand 2:","EDIT","0","vOper2") <form_item>("FM1","","LINE","0","") <form_item>("FM1","Continue ?","CHECK","0","vAgain") <label>("lbl_Again") <form_show>("FM1","Simple Calculator","calc.exe",0) <if>("vOperation==Plus") <varchng>("vOper1","+","vOper2") <endif> <if>("vOperation==Minus") <varchng>("vOper1","-","vOper2") <endif> <if>("vOperation==Multiply") <varchng>("vOper1","*","vOper2") <endif> <if>("vOperation==Divide") <varchng>("vOper1","/","vOper2") <endif> <msg>(100,100,"vOper1","The result is:",1) <if>("vAgain==YES") <goto>("lbl_Again") <endif>