nikolaus Member Licensed User Longtime User Jan 3, 2015 #1 B4X: If editURL.Text.Contains ("://www.google.") _ '# OR editURL.Text.Contains ("://google.") _ OR editURL.Text.Contains("https://duckduckgo.com") Then works as expected. However B4X: If editURL.Text.Contains ("://www.google.") _ '# OR editURL.Text.Contains ("://google.") _ OR editURL.Text.Contains("https://duckduckgo.com") Then produces 'missing end sub' error
B4X: If editURL.Text.Contains ("://www.google.") _ '# OR editURL.Text.Contains ("://google.") _ OR editURL.Text.Contains("https://duckduckgo.com") Then works as expected. However B4X: If editURL.Text.Contains ("://www.google.") _ '# OR editURL.Text.Contains ("://google.") _ OR editURL.Text.Contains("https://duckduckgo.com") Then produces 'missing end sub' error
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2015 #2 The second code snippet is wrong. There is no line continuation character (the last underscore is part of the comment).
The second code snippet is wrong. There is no line continuation character (the last underscore is part of the comment).