DTW_TB_HTMLENCODE

AIX HP-UX Linux OS/2 OS/390 OS/400 PTX SUN Win NT
X X X X X X X X X

Purpose

Replaces certain characters in the data located in a Net.Data table with their corresponding HTML character escape codes.

Format

@DTW_TB_HTMLENCODE(table, collist)

@DTW_TB_HTMLENCODE(table)

Parameters

Table 138. DTW_TB_HTMLENCODE Parameters
Data Type Parameter Use Description
table table INOUT The macro table variable to modify.
string collist IN The column numbers in table to encode. The default is to encode all columns.

Return Codes

Table 139. DTW_TB_HTMLENCODE Return Codes
Return Code Explanation
-1001 The server could not process a Net.Data request to allocate memory.
1001 An input parameter contained a NULL value.
1003 An incorrect number of parameters were passed on a function call.
1004 A parameter passed on a function call, required to be a Net.Data macro table variable, was of a different variable type.
1005 A parameter passed on a function call, required to be a string variable, was of a different variable type.
1007 A parameter contains a value which is not valid.
1008 A parameter is outside of table bounds.

Usage Notes

The characters that are replaced are indicated in the table below.
Name Character Code
Ampersand & &
Double quote " "
Greater than > >
Less than < &#60;

Examples

Example 1:

@DTW_TB_HTMLENCODE(Mytable, "3 4")

The special characters in columns 3 and 4 of the specified table are replaced with their encoded forms.


[ Top of Page | Previous Page | Next Page | Index ]