Quote in string???

  • Thread starter Thread starter DaveF
  • Start date Start date
I dont understand how this second one would work. It seems to me like it
would just close the quote and start a new one. It doesent seem like it
would include it in the string.


Stoitcho Goutsev (100) said:
Hi Dave,

":tdf\"4$$$[A"
or
":tdf""4$$$[A"

--
HTH
B\rgds
100

DaveF said:
Newbie here. How do I escape the quote in this password

ff.setRemotePass(":tdf"4$$$[A");
 
I dont understand how this second one would work. It seems to me like it
would just close the quote and start a new one. It doesent seem like it
would include it in the string.

You must be a C++ programmer then :)

The first syntax is C style the second in VB style
C# uses the first syntax
VB.net the second

Vin
 
Hi folks,

Yeah, you are right.

Both ways are supported in C++ so I thought they are suported in C# as well.
I have never used the *""* one even in C++ because I find it less readable.
That's why I never tried in C# and it seems C# doesn's support it.
So, *\"* is the way to go.
 
Stoitcho Goutsev (100) said:
Yeah, you are right.

Both ways are supported in C++ so I thought they are suported in C# as well.
I have never used the *""* one even in C++ because I find it less readable.
That's why I never tried in C# and it seems C# doesn's support it.
So, *\"* is the way to go.

Note that for verbatim string literals, \" isn't available, and there,
"" *is* supported:

string x = "--> \"quoted\" <--";
string y = @"--> ""quoted"" <--";

are equivalent.
 
Hi Martin,

Thanks for the clarfication. It makes sense.

--
B\rgds
100

slu4aino da 4ete6 tova. Ako go 4ete6 radvam se nai-posle da sre6tna balgarin
v grupata :)
 
Back
Top