Method SetVar()


 

Syntax

:SetVar(cType, cVar, cVal, [lReadOnly], [cID], [lBR], [lWrite])

 

Parameters

 

 

cType

Type of variable. example "HIDDEN"

 

cVar

Variable Name.

 

cVal

Value for the variable.

 

lReadOnly

Sets value as ReadOnly or not. Not normally used here. see :SLE() and :MLE().

 

cID

This attribute is used to reference a style sheet element or to provide a unique name used during script manipulation of data.

 

lBR

Logical indicating whether to append a <BR> (Web newline) to Display elements

 

lWrite

Logical indicating whether to send results directly to the User's Browser

 

 

Return

If :lWrite, Number of characters written to Browser.

Otherwise, the results is the completed <INPUT ...> Tag.

 

Description

Creates a variable, usually on a <FORM>, and assigns an initial value to it.

Example:

     <INPUT type="HIDDEN" name="SomeVar" value="ThisValue">

 

See Also:

:Button(), :Checkbox(), :FormStart(), :GetVar(), :MLE(), :RadioButton(), :SelectStart(), :SelectOption(), :SLE(), :aVars

 



Contents