1. what error is this?

Why would this line, which does no length comparisons:

puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = 
"&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= 
"&sprintf("%d",endtime-starttime))

give me this error:

sequence lengths are not the same (5 != 1) 

Kat,
puzzled.

new topic     » topic index » view message » categorize

2. Re: what error is this?

Is this all just one long line wrapped by the email client, or do you
actually have a string breaking lines?

Mike Sabal

>>> gertie at PELL.NET 06/19/02 02:52PM >>>

Why would this line, which does no length comparisons:

puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = 
"&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= 
"&sprintf("%d",endtime-starttime))

give me this error:

sequence lengths are not the same (5 != 1) 

Kat,
puzzled.

new topic     » goto parent     » topic index » view message » categorize

3. Re: what error is this?

could endtime and starttime not be atoms?

george
----- Original Message ----- 
From: "Kat" <gertie at PELL.NET>
To: "EUforum" <EUforum at topica.com>
Subject: what error is this?


> 
> Why would this line, which does no length comparisons:
> 
> puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = 
> "&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= 
> "&sprintf("%d",endtime-starttime))
> 
> give me this error:
> 
> sequence lengths are not the same (5 != 1) 
> 
> Kat,
> puzzled.
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: what error is this?

> Why would this line, which does no length comparisons:
> 
> puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = 
> "&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= 
> "&sprintf("%d",endtime-starttime))

Prolly 'cuz you can't split strings across lines.

Will this work? I don't know:

puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = "
&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= "
&sprintf("%d",endtime-starttime))

new topic     » goto parent     » topic index » view message » categorize

5. Re: what error is this?

> Why would this line, which does no length comparisons:
> 
> puts(writefile,"num1= "&num_1&"\nnum2= "&num_2&"\n\noriginal = 
> "&sprintf("%d",num_1/num_2)&"\nstr math = "&junk&"\nTime= 
> "&sprintf("%d",endtime-starttime))
> give me this error:
> sequence lengths are not the same (5 != 1) 

Or maybe endtime and starttime are unequally-yoked sequences.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu