Method Html3():setVar() Professional

Define a hidden variable in the HTML page.

Syntax
:setVar( <cVarName>, <cValue> ) --> NIL
Parameters
<cVarName>
<cVarName> is the name of the variable.
<cValue>
<cValue> is the value of the parameter.
Return

The return value of the method :setVar() is always NIL.

Description

This method is frequently used for defining both, package DLL and form-function to be invoked by a submit button:

HTML code:

<INPUT TYPE=hidden NAME="WAA_PACKAGE" VALUE="MyDll"> 
<INPUT TYPE=hidden NAME="WAA_FORM"    VALUE="MyFormFunction"> 
<INPUT TYPE=submit VALUE="Go get it"> 

PRG code:

oHTML:setVar( "WAA_PACKAGE", "MyDLL" ) 
oHTML:setVar( "WAA_FORM"   , "MyFormFunction ) 
oHtml:submitButton( "Go get it" ) 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.