J John de Murga Member Licensed User Longtime User Jan 8, 2011 #1 OK Another silly question ... How to I break up a long line of code in basic4android ?
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2011 #2 B4X: Msgbox("sdfsdfklsdfj lskdjf lksd fjl", _ "title") space followed by underscore. Upvote 0
peacemaker Expert Licensed User Longtime User Oct 17, 2011 #3 What about very long string ? Say SQL request. Long string with " _", seems to me, does not look a string if multiline. And second question for SQL strings: if in the request used quotation marks """ - how to use ? SELECT _ ORDERNUMBER, _ ORDERS.USERCODE, _ USERS.FIO AS USERNAME, _ DATE(ORDERDATE, "localtime"), _ ...... Click to expand... Last edited: Oct 17, 2011 Upvote 0
What about very long string ? Say SQL request. Long string with " _", seems to me, does not look a string if multiline. And second question for SQL strings: if in the request used quotation marks """ - how to use ? SELECT _ ORDERNUMBER, _ ORDERS.USERCODE, _ USERS.FIO AS USERNAME, _ DATE(ORDERDATE, "localtime"), _ ...... Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2011 #4 Break long string: B4X: s = "asdkasdjasldasdaklsdj" & _ " jskldfjksdlfjklsdf jlskfj skldfj " & _ " klsdjfklsdjf klfjsl f" Quotes: B4X: s = "string with " & Quote & "quotes" & Quote Tip: B4X: s = "string with ~quotes~".Replace("~", Quote) Upvote 0
Break long string: B4X: s = "asdkasdjasldasdaklsdj" & _ " jskldfjksdlfjklsdf jlskfj skldfj " & _ " klsdjfklsdjf klfjsl f" Quotes: B4X: s = "string with " & Quote & "quotes" & Quote Tip: B4X: s = "string with ~quotes~".Replace("~", Quote)
peacemaker Expert Licensed User Longtime User Oct 18, 2011 #5 Thank you Erel ! I didn't even know about QUOTE key Upvote 0