How to assign a string with " inside it to a variable ?
If we try to :
strFirst = "var1"var2"
The following error will occur :
Expected: end of statement
Thank you.
Omid Soroori of OMID SOFT.
How to assign a string with " inside it to a variable ?
If we try to :
strFirst = "var1"var2"
The following error will occur :
Expected: end of statement
Thank you.
Omid Soroori of OMID SOFT.
use chr$(34)
s = "Assign a quote " & Chr$(34) & " to a string"
kevin
Thanks for that infomation I thought that $ sign ment for some binary works or I don't know what esle becouse I have seen $ in some other persons code and I thought that Chr$ and Chr is accually the same thing, but I haven't been sure... thanks
No !
If we want to assign this string to a variable :
Var1 = "fp"sp"
There will be an error !
You should use the double " like this :
Var1 = "fp""sp"
That's all.
Have a nice day.
Omid Soroori of OMID SOFT.