Table of Contents

O4WEscape routine

Description

Allows for the encoding of a string to a particular environment.

Syntax

O4WEscape(value, type)

Parameters

The function has the following parameters:

ParameterDescription
valueThe string to be encoded.
type The encoding type
Encoding Type ValueEncoding Type O4WEquates Insert record value
0O4W_ESCAPE_HTML$
1O4W_ESCAPE_URL$
3O4W_ESCAPE_URL_COMPONENT$
4O4W_ESCAPE_ID$
nullO4W_ESCAPE_JS$

Remarks

Note that O4W normally takes care of encoding strings as needed; however, it is up to the developer to use valid strings for "name" and "ID" parameters for the O4W calls, and calling O4WEscape with the O4W_ESCAPE_ID$ parameter is one way to ensure that a name or ID is valid.