p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: VBScript compilation error '800a03ea'


Message #1 by "jong wan chin" <jongwc@s...> on Fri, 27 Jul 2001 02:00:31
Have you cut the code from an html-example or have you generated it in 
an editor that insert " " insted of whitespace?
The code works fine for me - after I have re-type it without " "
/Peter

----- Original Message -----
From: "jong wan chin" <jongwc@s...>
To: "Code Clinic" <proasp_codeclinic@p...>
Sent: Friday, July 27, 2001 9:38 AM
Subject: [proasp_codeclinic] VBScript compilation error '800a03ea'


> hi all,
>
> This is the error I get when i put all the calculation function in
> calculate.asp file:
>
> Microsoft VBScript compilation error '800a03ea'
>
> Syntax error
>
> /calculate.asp, line 2
>
> FUNCTION totalTarget(compLev, prio)
> ^
>
> here is the code that i use.
>
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D 
calculate.asp=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <%
>   FUNCTION totalTarget(compLev, prio)
>     totalTarget=3DcompLev * prio
>   End FUNCTION
>
>   FUNCTION totalActual(achLev, prio)
>     totalActual=3DachLev(i) * prio
>   End FUNCTION
>
>   FUNCTION countPercent(actual, target)
>     countPercent =3D actual/target * 100
>   End FUNCTION
> %>
> 
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D
>
> here is the code i use to call the function:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 
main.asp=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <%
> For i=3D1 to lngTotal                                             'I 
have an
> array of data in "skillID", "comp_level" and "LEVEL"
>     skill=3DRequest.Form("skillID")(i)
>     comp=3DRequest.Form("comp_level")(i)
>     lev=3Drequest.form("LEVEL")(i)
>     Set rst2=3Dcnn.execute("SELECT * FROM SKILL_COMPETENCY WHERE
> JOB_ID=3D'"&jobID&"' AND SKILL_ID=3D'"&skill&"'")
>     prio=3Drst2("PRIORITY")
> %>
>
> <!--#include file =3D"calculate.asp"-->
>
> <%
>     target=3Dtarget + totalTarget(comp,prio)
>     actual=3Dactual + totalActual(lev,prio)
>
>    Next
>     percent=3DcountPercent(target, actual)
> %>
> 
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> please help me to solve this problem.
>
> thanks.
>
> regards,
> jong
>
>
>


  Return to Index