c# - How can I put my semicolon on same line on rich text box? -
using (oraclecommand crtcommand = new oraclecommand("mycommand", conn1)) { richtextbox1.appendtext(environment.newline); richtextbox1.appendtext(crtcommand.executescalar().tostring() + ";"); richtextbox1.appendtext(environment.newline); }
result:
create unique index "xpktbl_a" on "tbl_a" ("field_a1") ;
expected result:
create unique index "xpktbl_a" on "tbl_a" ("field_a1");
@andreasniedermair suggested in comments trim line break should help
richtextbox1.appendtext(crtcommand.executescalar().tostring().trimend('\r', '\n', ' ') + ";");
Comments
Post a Comment