Logo 
Search:

MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

Assign "abcd to string including double quotes

  Asked By: Ronnie    Date: Mar 24    Category: MS Office    Views: 786
  

I want to assign a value to a string where the value will have double
quotes too.

ex :
dim str1 as string

str1 = " "abcd" "

How do I do this? Please help me if anybody knows how to do this.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Maxine Jones     Answered On: Mar 24

You double  the quotes  inside the quotes like this:

str1 = """abcd"""

Or if you wanted spaces at the start and end of the string

str1 = " ""abcd"" "

 
Didn't find what you were looking for? Find more on Assign "abcd to string including double quotes Or get search suggestion and latest updates.




Tagged: