Top
NetCOBOL V11.0 ISAPI Subroutines User's Guide
FUJITSU Software

3.4.2 COBW3_CHECK_VALUE, COBW3_CHECK_VALUE_X and COBW3_CHECK_VALUE_N

These subroutines search any value (VALUE) from Web parameters obtained by "COBW3_INIT". This subroutine is used, for example, to evaluate the items checked by the WWW Browser based on the value (VALUE) when activated from a Web page for the invoking application with the check boxes. The following lists the meaning of each subroutine:

ASCII environment

COBW3_CHECK_VALUE

Searches the value (VALUE) of an alphanumeric character string.

Unicode environment

COBW3_CHECK_VALUE_X

Searches the value (VALUE) of an alphanumeric character string.

COBW3_CHECK_VALUE_N

Searches the value (VALUE) of a national character string.

How to write

CALL "COBW3_CHECK_VALUE" USING COBW3.
CALL "COBW3_CHECK_VALUE_X" USING COBW3.
CALL "COBW3_CHECK_VALUE_N" USING COBW3.

Data setting for calling

COBW3-SEARCH-DATA and COBW3-SEARCH-DATA-N

Set the value (VALUE) to be searched.

For COBW3_CHECK_VALUE and COBW3_CHECK_VALUE_X, set the value to COBW3-SEARCH-DATA.

For COBW3_CHECK_VALUE_N, set the name to COBW3-SEARCH-DATA-N.

COBW3-SEARCH-LENGTH [optional]

If the value (VALUE) has a valid blank at the end, set the string length (byte length) of the value including the blank.

Value

Meaning

0

Searches the value using the length up to the last character excluding the blank.

1 to 1024

Searches the value using the specified string length.

COBW3-NUMBER [optional]

Sets the order of appearance of VALUES to be searched when there are multiple VALUES with the same value in the Web parameters.

Condition name

Value

Meaning

COBW3-NUMBER-INIT

1

Searches the value that matches first.

-

2 to 9999

Searches the values in the specified order of appearance.

Processing result data

COBW3-SEARCH-FLAG

Condition name

Value

Meaning

COBW3-SEARCH-FLAG-NON

"0"

The value to be searched does not exist.

COBW3-SEARCH-FLAG-EXIST

"1"

The value to be searched exists.