OP 16 February, 2020 - 04:09 PM
Hi, I'm making a discord bot right now but I have ran into an issue I can't seem to fix...
I need to change the text of my richtextbox2 to : {"username":"test","discriminator":9999}
The issue is the " is making errors because C# thinks I am ending the string there. I can't use ' because it says there are too many characters in a character literal.
So the code looks like this:
But yeah, the issue is it thinks I am ending the string. I also cannot use ' , it has to be speech marks not apostrophes.
Is there some other character I can use or a line of code or something so it just takes that as the string? For instance:
richtextbox2.Text = ${"username":"test","discriminator":9999}$
So I use the dollar symbol as the speech marks so it doesn't interfere...
I need to change the text of my richtextbox2 to : {"username":"test","discriminator":9999}
The issue is the " is making errors because C# thinks I am ending the string there. I can't use ' because it says there are too many characters in a character literal.
So the code looks like this:
Code:
richtextbox2.Text = "{"username":"test","discriminator":9999}"
But yeah, the issue is it thinks I am ending the string. I also cannot use ' , it has to be speech marks not apostrophes.
Is there some other character I can use or a line of code or something so it just takes that as the string? For instance:
richtextbox2.Text = ${"username":"test","discriminator":9999}$
So I use the dollar symbol as the speech marks so it doesn't interfere...
DISCORD SERVER : CLICK