$WBACHG - change value of array element

Availability
$WBACHG is available for use with all WBSP commands.

Syntax
$WBACHG{arrayname|index|varvalue|show}
$WBACHG[arrayname|index|
varvalue|show]

Parameters
arrayname - the name of the array
index - index of the element
varvalue - the new value
show - optional parameter  - if set to true (T,ON,1) WhizBase will return 1 if function was successful and 0 if not (element not found)


Returns
1 if function was successful and 0 if not (element not found).

Example

<!--
[FormFields]
wb_command=R
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBAChg</title>
</head>
<body>
$wbsplit[Mon,Tue,Wed,thu,Fri,Sat,Sun|days|,|f]
$wbgetv[days(3)]<br>
$wbachg[days|3|Thu]
$wbgetv[days(3)]
</body>
</html> 

After running this example, the resulting page in browser should look like this:

thu
Thu