P Penko Active Member Licensed User Longtime User Mar 6, 2012 #1 Hello! I am trying to escape the string for the use of "(quote). As far as I know, VB handles it correctly but I am breaking the compiler without success. Code: confirmation = Common.showQuestion(Common.trans.GetText2("Are you sure you want to delete the word \"{1}\"", Array As String(theItem)), _ Common.trans.GetText("Delete?"), Common.trans.GetText("Yes"), Common.trans.GetText("No")) I tried various things around {1} -> ""{1}"", the current one, etc...
Hello! I am trying to escape the string for the use of "(quote). As far as I know, VB handles it correctly but I am breaking the compiler without success. Code: confirmation = Common.showQuestion(Common.trans.GetText2("Are you sure you want to delete the word \"{1}\"", Array As String(theItem)), _ Common.trans.GetText("Delete?"), Common.trans.GetText("Yes"), Common.trans.GetText("No")) I tried various things around {1} -> ""{1}"", the current one, etc...
NJDude Expert Licensed User Longtime User Mar 6, 2012 #2 You could do this: Code: ... "Are you sure you want to delete the word " & QUOTE & "{1}" & QUOTE ... Upvote 0
P Penko Active Member Licensed User Longtime User Mar 7, 2012 #3 That looks pretty straightforward and hence I believe it would work! Thanks ) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2012 #4 You can also write: Code: "Are you sure you want to delete the word ~{1}~...".Replace("~", QUOTE) Upvote 0
P Penko Active Member Licensed User Longtime User Mar 7, 2012 #5 That also looks cool. Thanks Erel. Sent from my HTC Desire using Tapatalk Upvote 0