formAddTextField
function formAddTextField(prompt, defaultValue: string; maxSize: integer; constraints:integer):integer;
Inserts a text field to the form. The function returns the ID of the text field. The 'prompt' is the string displayed next to tet field. 'defaultValue' is the text that is initially in the text field. 'maxSize' is the maximum length of the text field in number of characters. 'constraints' can be any of the following:
var textField_id: integer;
begin
textField_id := formAddTextField('Enter your name', 'Mr.Smith', 20, TF_ANY);
showForm;
delay(2000);
end.
See also: showForm, formSetText, formGetText, formRemove