Hi Geoff,
The problem is that the function call is returning a value which has
nowhere to go. You will need to assign it to a variable or write it to the
screen.
Try:
numlines = formatnumber(numlines,0)
regards,
Iian
At 02:17 PM 8/3/2005, you wrote:
>Hey everyone. I'm just starting out in the world of ASP, and I have a
>very basic question. Can anyone tell me why when I run the following
>code in a script:
>
>if linelength > 80 then
> numlines = linelength/80
> formatnumber(numlines,0) 'removes trailing decimals
> response.write(line)
> response.write "<br>"
> toAdd = (numlines+1)*80
> char=char+toAdd
>end if
>
>I am met with the error "Microsoft VBScript compilation (0x800A0414)
>Cannot use parentheses when calling a Sub"
>
>If I comment out the formatnumber(numlines,0) and add
>response.write(numlines) to see what is being stored in the variable,
>I get a normal value of 3.275, all ready to be formatted. I'd really
>appreciate any help. Thanks a lot
>-Geoff
>
>
>
>
>
>
>
>
>SPONSORED LINKS
><http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=hjFSMmldhVc3zrT5SqL9xQ>Programming
>
>languages
><http://groups.yahoo.com/gads?t=ms&k=C+programming+language&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=td85HQ93XfErfw7wfLZ86A>C
>
>programming language
><http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=BMtgOo7dpsC1xzn1YgpBPg>Computer
>
>programming languages
><http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=8IuywkhSLTtpB6_iFiJoCQ>Java
>
>programming language
><http://groups.yahoo.com/gads?t=ms&k=C+++programming+language&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=jpmDiGf8qD8AqZNqFwDO7w>C
>
>programming language
><http://groups.yahoo.com/gads?t=ms&k=History+of+computer+programming+language&w1=Programming+languages&w2=C+programming+language&w3=Computer+programming+languages&w4=Java+programming+language&w5=C+++programming+language&w6=History+of+computer+programming+language&c=6&s=198&.sig=9slR1_vZJlvyOINA4iLkow>History
>
>of computer programming language
>
>
>----------
>YAHOO! GROUPS LINKS
>
> * Visit your group
> "<http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk>AspClassicAnyQuestionIsOk"
>
> on the web.
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
>
>
>----------
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hmnpse7/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123080182/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/