Difference between string and string literals

  • Thread starter Thread starter James
  • Start date Start date
J

James

just wondering if there was a difference, if so, could I see an
example? Thanks.
 
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"
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top