RE: what error is this?

new topic     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: Kat [mailto:gertie at PELL.NET]

> 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) 

I assume the sequences in question are either num_1/num2 or
endtime/starttime.  Sequence math (+,-,*,/,=,!=,<,>,<=,>=) requires equal
length sequences.  I'm not sure why you'd be doing the above with sequences
of numbers, but that's where your error lies.

Matt Lewis

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu