FormResult()


Retrieve the input values from the controls of a form created using the FormCreate() and FormAdd() functions.

Syntax

FormResult(n) --> xResult

Arguments

<n> --> The number of the control to retrieve the value of.

Returns

Returns the contents of the selected control.

Description

Returns the value from a specified control of the last form created using FormCreate() in combination with FormAdd().

Example

FormCreate()

FormAdd("Name", "", 20)

If FormShow("A New Dialog Window","Accept", "Cancel", TRUE)

   Declare MyName Type Character

   MyName := FormResult(1)

   Echo("Your name is: " + MyName)

Endif

____________________________

Related Topics:

Business Function List

FormAdd()

FormCreate()

FormShow()



CAPITAL VISUAL BUILDER