Share this page

# web_set_max_html_param_len

Sets the maximum length of any HTML string that can be retrieved and saved as a parameter.

## C Language

    int web_set_max_html_param_len( const char *length);

Correlation Functions for C

## Java Language

    int object.set_max_html_param_len( String length);

Correlation Functions for Java | Java Syntax

Argument | Description
--- | ---
object | An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.
length | The maximum length of any HTML string that can be retrieved. Do not enter a length greater than the value of an unsigned integer (4294967295).

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

The following argument(s) can be parameterized using standard parameterization: length

## General Information

The web_set_max_html_param_len function is used when correlating HTML statements. It is recorded only when correlation during recording is enabled (see VuGen's Recording Options).

The web_set_max_html_param_len function sets the maximum length of any HTML string which VuGen can retrieve and save in a parameter. The default value for the maximum length of a parameter that can be captured during correlation is 256 characters (see web_reg_save_param_ex). To retrieve a string longer than 256 characters, use web_set_max_html_param_len to increase the maximum valid length. An attempt to save a string whose length exceeds the maximum length will fail.

This function is supported for all web scripts.

## C Example

The following example sets that the maximum length of HTML data which you can retrieve and save in a parameter to 1024 characters:

    web_set_max_html_param_len("1024");

## Java Example

The following example sets that the maximum length of HTML data which you can retrieve and save in a parameter to 1024 characters:

    web.set_max_html_param_len("1024");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: