[Tutor] RE: HTMLgen question

David Carter dactex at swbell.net
Fri Sep 3 21:24:15 CEST 2004


That worked! Thanks, Danny!

David Carter


Danny Yoo wrote:
> Hi David,
> 
> 
> One difference between:
> 
>     Response.Write(a)
> 
> and:
> 
>     print a
> 
> is that the 'print' statement implicitly turns whatever it's 
> given into a string, by calling str() on its arguments.
> 
> 
> The error message that you're getting:
> 
> 
> > Traceback (most recent call last):
> > File "<Script Block >", line 3, in ?
> >     Response.Write(a)
> > File "<COMObject Response>", line 2,
> >     in Write TypeError:
> > Objects for SAFEARRAYS must be sequences (of sequences), or 
> a buffer 
> > object.
> 
> 
> implies that Response.Write() function expects its argument 
> to be a string already.
> 
> So you may need to do something like:
> 
>     Response.Write(str(a))
> 
 



More information about the Tutor mailing list