ToString Function

Description:

This function convert an integer, a float or a form to a string.

Format:

result = ToString(iexpression)

Parameter:

expression

An integer, a float or a form expression to be converted.

Example:

string newStr;
form formVar;

newStr = ToString(14);
LOG "newStr = " + newStr;

newStr = ToString(3.14159);
LOG "newStr = " + newStr;

HTML_SetFormValue(formVar, "FirstName", "John");
HTML_SetFormValue(formVar, "LastName", "Smith");
newStr = ToString(formVar);
LOG "newStr = " + newStr;

Output:

newStr = 14
newStr = 3.14159
newStr = FirstName=John&LastName=Smith





Go back to the Learning center:


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