Hello everyone,
I am attempting to add a function to an existing ASP page. The default script of the page is VBScript. The page is returning the following error:
Microsoft VBScript compilation [font=Arial][size=2]error '800a03f6'[/size][/font][font=Times New Roman][size=3] [/size][/font]
[font=Arial][size=2]Expected 'End'[/size][/font]
[font=Arial][size=2]/BatchReportCRIn fo2.asp[/size][/font][font=Arial][size=2], line 319[/size][/font] else DL=cint(dispers ion_lower)^I know these errors aren't always what they say they are, but I guess I should start with the obvious. Here is the code for the function, starting with line 316. This is my first time posting so I hope I do it right.
Thanks in advance for your help!
I am attempting to add a function to an existing ASP page. The default script of the page is VBScript. The page is returning the following error:
Microsoft VBScript compilation [font=Arial][size=2]error '800a03f6'[/size][/font][font=Times New Roman][size=3] [/size][/font]
[font=Arial][size=2]Expected 'End'[/size][/font]
[font=Arial][size=2]/BatchReportCRIn fo2.asp[/size][/font][font=Arial][size=2], line 319[/size][/font] else DL=cint(dispers ion_lower)^I know these errors aren't always what they say they are, but I guess I should start with the obvious. Here is the code for the function, starting with line 316. This is my first time posting so I hope I do it right.
Code:
function dspchk(QDispersion,dispersion_lower,dispersion_upper) if QDispersion>0 then QD=cint(QDispersion) if (isNull(dispersion_lower) or rtrim(dispersion_lower)="") then DL=0 else DL=cint(dispersion_lower) end if if (isNull(dispersion_upper) or rtrim(dispersion_upper)="" or dispersion_upper=0) then DU=5 else DU=cint(dispersion_upper) end if if (DL>QD or QD>DU) then dspchk="<font color=red><b>OOS: " & QD & "</b></font>" else dspchk=QD end if else dspchk=QDispersion end if end function
Comment