Home All Groups Group Topic Archive Search About

Difference between string and string literals

Author
2 Oct 2006 5:06 AM
James
just wondering if there was a difference, if so, could I see an
example? Thanks.

Author
2 Oct 2006 10:00 AM
Ibrahim Shameeque
Hi
String is a datatype and string literal is the information stored in this
datatype. Any literals enclosed within "". Ex
Dim str as string 'DataType
str = "This is a string literal" & vbcrlf & _
        "which is two lines long"
--
---------------------------
Thanks,
Ibrahim

Software Consultant - Web Development, GB


Show quoteHide quote
"James" wrote:

> just wondering if there was a difference, if so, could I see an
> example? Thanks.
>
>