List Info

Thread: Alternative to using Double quotes (" ")




Alternative to using Double quotes (" ")
country flaguser name
United States
2008-07-09 14:22:46

I am trying to write some VB code for an HTML report.

For instance to write <html&gt;

in VB I would do this: sw.write(&quot;<html>&quot;)
this works fine.

However, I have this code:

<h1 align=&quot;center&quot;>

I am unsure how to handle the "center" because VB knows the Quote as
something.

So is there an alternative for me?

Thank you,

- LarryTAKEOUT%40seldin.net">LarryTAKEOUTseldin.net

__._,_.___
.

__,_._,___
Re: Alternative to using Double quotes (" ")
country flaguser name
United States
2008-07-09 16:23:27

I don't know VB Script, but if I had to take an (educated?) guess, I would
probably tell you to use double double-quotes to surround your center text.
In Unix-based programming languages, the escape character is generally a
backslash. In Microsoft, I THINK it's using the character twice. So...

sw.write(&quot;<h1 align=&quot;"center"&quot;>&quot;)

--
Steve - Web Applications Developer
http://www.sdwebsystems.com

On Wed, Jul 9, 2008 at 12:22 PM, lseldin < larry%40seldin.net">larryseldin.net> wrote:

> I am trying to write some VB code for an HTML report.
>
> For instance to write <html&gt;
>
> in VB I would do this: sw.write(&quot;<html>&quot;)
> this works fine.
&gt;
>
> However, I have this code:
&gt;
> <h1 align=&quot;center&quot;>
>
>
> I am unsure how to handle the "center" because VB knows the Quote as
> something.
>
&gt; So is there an alternative for me?
>
> Thank you,
>;
> - LarryTAKEOUT%40seldin.net">LarryTAKEOUTseldin.net
>

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: Alternative to using Double quotes (" ")
country flaguser name
United Kingdom
2008-07-10 02:38:57

Wednesday, July 9, 2008, Steve Adcock wrote:

> I don't know VB Script, but if I had to take an (educated?) guess, I would
&gt; probably tell you to use double double-quotes to surround your center text.
&gt; In Unix-based programming languages, the escape character is generally a
> backslash. In Microsoft, I THINK it's using the character twice. So...

> sw.write(&quot;<h1 align=&quot;"center"&quot;>&quot;)
---

I do know VBScript, and you are correct!

That said, some interpreters will balk at the parentheses when calling
a sub, so I'd write:

sw.Write "<h1 align=&quot;"center"&quot;>&quot;

HTH,

--
Geoff

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )