[RESOLVED] add "" (inverted comma within a string)
hi guys, there must be a simple solution to this problem but im not able to figure it out at all... what i need is to have a string which has ""(inverted comma) within it ex. str = "my name is "developer"".
(that developer there should come as it is) but vb obviously terminates the statement before only..
how can i achieve this..?? plz help.. and i've to keep this way only.. :-(
Re: add "" (inverted comma within a string)
Two double quotes before and two after:
Code:
strD = "My Name is ""Doogle"" it's really a nickname"
or you could concatinate Chr(34) into the appropaiate portion of the string
Code:
strD = "My Name is " & Chr(34) & "Doogle" & Chr(34) & " it's really a nickname"
Re: add "" (inverted comma within a string)
thanx a ton!!! :-) rated..
Re: [RESOLVED] add "" (inverted comma within a string)
there may be a vbconstant vbquote it will change shape if it exists
you 'll understand if its there
vbcr becomes vbCr