I am unable to get the following variables to perform a basic calc. fyi - I can get them to work in another program.
<readln "c:\data\filename.htm">
<$in = $ret>
<strstr "<" $in>
<$begincalc = $ret>
<strstr ">" $in>
<$endcalc = $ret>
<$length = (($endcalc - $begincalc) + 1)>
<substr $in $begincalc $length>
Final Results: $ret
</readln>
I am trying to parse out the beginning tag value in a file - i.e. <sometext>1234 more stuff</sometext> so the results should be = <sometext>
The scripting doesn't seem to recognize the addition or subtraction.
Any ideas ???
thx.
Ben
<readln "c:\data\filename.htm">
<$in = $ret>
<strstr "<" $in>
<$begincalc = $ret>
<strstr ">" $in>
<$endcalc = $ret>
<$length = (($endcalc - $begincalc) + 1)>
<substr $in $begincalc $length>
Final Results: $ret
</readln>
I am trying to parse out the beginning tag value in a file - i.e. <sometext>1234 more stuff</sometext> so the results should be = <sometext>
The scripting doesn't seem to recognize the addition or subtraction.
Any ideas ???
thx.
Ben