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:
·TF_ANY - text field can contain any characters
·TF_EMAIL - only email can be entered into text field
·TF_NUMERIC - only number can be entered into text field
·TF_PHONENUMBER - only phonenumber can be entered into text field
·TF_URL - only URL can be enetered into the ext field
·TF_PASSWORD - the text in the field is hidden, '*' character are displayed instead
function FormAddTextField(prompt, defaultValues tring;maxSizeinteger; constraints:integer):integer;
Example
var textField_idinteger;
begin
textField_id := FormAddTextField('Enter your name', 'Mr.Smith', 20, TF_ANY);
ShowForm;
Delay(2000);
end.