GregTomkins
Active Member
Does anyone (STEFAN) know why this happens?
'params' is in the HTTP request, is only a few bytes, and doesn't contain anything other than normal A-Z characters. I tried fiddling with HTML-CHARSET to no avail.
The doc on GET-CGI-LONG-VALUE is sketchy, but Progress uses it like this:
Code:
DEF VAR h_foo AS CHAR NO-UNDO.
DEF VAR h_bar AS LONGCHAR NO-UNDO.
/* works normally */
h_foo = WEB-CONTEXT:GET-CGI-VALUE ("ENV":U,"params") NO-ERROR.
/* returns error 'Incompatible datatypes found during runtime conversion. (5729)' */
h_bar = WEB-CONTEXT:GET-CGI-LONG-VALUE ("ENV":U,"params") NO-ERROR.
'params' is in the HTTP request, is only a few bytes, and doesn't contain anything other than normal A-Z characters. I tried fiddling with HTML-CHARSET to no avail.
The doc on GET-CGI-LONG-VALUE is sketchy, but Progress uses it like this:
Code:
FUNCTION get-cgi-long RETURNS LONGCHAR
(INPUT p_name AS CHARACTER) :
/****************************************************************************
Description: Retrieves the LONGCHAR value for the specified CGI variable
Input Parameter: Name of variable or ?
Returns: Value or blank if invalid name.
****************************************************************************/
IF p_name = ? THEN
RETURN WEB-CONTEXT:GET-CGI-LIST("ENV":U).
ELSE
RETURN WEB-CONTEXT:GET-CGI-LONG-VALUE("ENV":U, p_name).
END FUNCTION. /* get-cgi-long */