Mashiane Expert Licensed User Longtime User Aug 2, 2021 #1 Hi there How do I make this work? B4X: dim sbAll as String sbAll = $"Sub HiddenLGAndUp AddClass("hidden-lg-and-up") End Sub Sub HiddenSMAndDown AddClass("hidden-sm-and-down") End Sub"$ I'm getting a string not closed error.. Thanks
Hi there How do I make this work? B4X: dim sbAll as String sbAll = $"Sub HiddenLGAndUp AddClass("hidden-lg-and-up") End Sub Sub HiddenSMAndDown AddClass("hidden-sm-and-down") End Sub"$ I'm getting a string not closed error.. Thanks
EnriqueGonzalez Well-Known Member Licensed User Longtime User Aug 2, 2021 #2 compiler doesnt like you using reserverd words. try: B4X: Dim sbAll As String sbAll = $" Sub HiddenLGAndUp AddClass("hidden-lg-and-up") "End Sub" "Sub HiddenSMAndDown" AddClass("hidden-sm-and-down") End Sub"$ or use varibles for such cases Upvote 0
compiler doesnt like you using reserverd words. try: B4X: Dim sbAll As String sbAll = $" Sub HiddenLGAndUp AddClass("hidden-lg-and-up") "End Sub" "Sub HiddenSMAndDown" AddClass("hidden-sm-and-down") End Sub"$ or use varibles for such cases
Mashiane Expert Licensed User Longtime User Aug 2, 2021 #3 But this seems to include the double quotes (") i dont need on "End Sub" and "Sub Hidden..." Upvote 0
EnriqueGonzalez Well-Known Member Licensed User Longtime User Aug 2, 2021 #4 then as i said, use variables. B4X: Dim su As String = "Sub" Dim esu As String = "End Sub" Dim sbAll As String sbAll = $" ${su} HiddenLGAndUp AddClass("hidden-lg-and-up") ${esu} ${su} HiddenSMAndDown AddClass("hidden-sm-and-down") End Sub"$ Upvote 0
then as i said, use variables. B4X: Dim su As String = "Sub" Dim esu As String = "End Sub" Dim sbAll As String sbAll = $" ${su} HiddenLGAndUp AddClass("hidden-lg-and-up") ${esu} ${su} HiddenSMAndDown AddClass("hidden-sm-and-down") End Sub"$
Mashiane Expert Licensed User Longtime User Aug 3, 2021 #5 Enrique Gonzalez R said: use variables. Click to expand... Aha!, I think I need thinker spectacles. LOL.. ? Upvote 0
Enrique Gonzalez R said: use variables. Click to expand... Aha!, I think I need thinker spectacles. LOL.. ?