GetParameterString

Description

Returns the URL encoded string for the value of a parameter that you add to a PSArgClass object. This method is for use with JSP 4GL targets only.

Applies to

PSArgClass

Syntax

ArgObj.GetParameterString ( )

Argument

Description

ArgObj

Object of the PSArgClass type containing the string you want to convert to URL encoding

Returns

String. The returned string is URL encoded.

Usage

The GetParameterString method is called automatically by the psPage.Redirect method. You can also call it directly to return a URL encoded value for a parameter string.

Examples

Example 1

This example puts the URL-encoded value of the PSArgClass object into a text box. The value defined for the parameter is added to the PSArgClass object that is included in the psPage.Redirect call:

PSArgClass myParam=null;
String paramURL;
myParam = new PSArgClass();
myParam.addArg("param1", "my parameter value");
paramURL=myParam.GetParameterString();
sle_1.value=paramURL;

The result entered in the sle_1 text box is:

param1=my+parameter+value

See also