HTML_SetFormValueList Function

Description:

This function assigns a value list (ex. SELECT tag containing several OPTIONS tags) in a Form field.

Format:

HTML_SetFormValueList(formVar, fieldName, valuelist);
HTML_SetFormValueList(formVar, fieldName, valuelist, fieldIndex);

Parameters:

formVar

A form variable in which the field value is assigned.

fieldName

A string expression containing the form field name in which the value is assigned.

valuelist

A one dimension array string containing the values to be assigned.

fieldIndex

If the form contains several fields that have the same name, the formFieldNameIndex specifies the rank index of the field to which the value is assigned.

Example:

FORM formVar;
STRING arrayValues[];

arrayValues[1] = "John";
arrayValues[2] = "Tom";

// Set the field "Name" to value "John" and "Tom" into formVar
HTML_SetFormValueList(formVar, "Name", arrayValues);

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap