vb.net - Can I put parentheses inside a string? -


i'm writing script generator in visual studio , i've run across problem. code:

dim text string text = "register.node("play") {(speed = 0, evnt=0,)}" 

and string doesn't cover it.. don't know why keeps exiting string? in other languages i've used there no way of exiting string inside.

i suggest either using double quotes...

text = "register.node(""play"") {(speed = 0, evnt=0,)}" 

or typing thusly.

text = 'register.node("play") {(speed = 0, evnt=0,)}' 

or maybe so.

text = "register.node("+"play"+") {(speed = 0, evnt=0,)}" 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -