philippoommen1
Member
Hi ,
Good Day!
Kindly help me in update the variable values f1 & f2 (which are the out put of the function - codeAddress ) to the temp table fields varOut1 & varOut2 after the each call in the for each loop.
TIA
-Philip-
Good Day!
Kindly help me in update the variable values f1 & f2 (which are the out put of the function - codeAddress ) to the temp table fields varOut1 & varOut2 after the each call in the for each loop.
TIA
-Philip-
Code:
<script language="speedscript">
def var vardatain as dec.
def temp-table tfdata
field varIn as int
field varOut1 as dec
field varOut2 as dec.
Procedure cal.
create tfdata.
Assign
tfdata.varin = 300.
create tfdata.
Assign
tfdata.varin = 400.
for each tfdata.
{&OUT} "<script language='JavaScript' type='text~/JavaScript'>" SKIP.
{&OUT} "codeAddress(" + string(tfdata.varin) + ");" skip.
{&OUT} "<~/script>" SKIP.
End.
END PROCEDURE.
</script>
<html>
<head>
<script type="text/javascript"></script>
<script type="text/javascript">
function codeAddress(vardatain) {
var f3 = vardatain;
var f1 = 10 + f3;
var f2 = 20 + f3;
};
</script>
</head>
<body>
<!--Div that will hold the pie chart-->
<!--WSS RUN cal. -->
Last edited by a moderator: