B4J Question Code as string - IDE Issue

epiCode

Active Member
Licensed User
IDE Interprets End sub in Literal String as actual End Sub even tho it is in literal string ($" "$)
Is there any workaround anyone is aware of?

Dummy Code:
Dim myString As String = $"String starts.
End Sub
Also this is a multiline string.
End Sub this is the last line of string.
"$
 

Cableguy

Expert
Licensed User
Longtime User
Does it happen if your string is in one single code line?
In B4x, strings can be "multi-line" by adding "CRTLF" at the break point, but still be in a single line or add a "_" when the code line continues in another line!
 
Upvote 0

epiCode

Active Member
Licensed User
Does it happen if your string is in one single code line?
In B4x, strings can be "multi-line" by adding "CRTLF" at the break point, but still be in a single line or add a "_" when the code line continues in another line!
No it is not in single line. It picks from regular code files. so the code string might not be broken by ctrl+f.
Also what I have shared is just an example.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
then you need to provide a small project were this occurs.... It's the first time I ever heard of an "end sub" within a string breaking the code
 
Upvote 0

epiCode

Active Member
Licensed User
then you need to provide a small project were this occurs.... It's the first time I ever heard of an "end sub" within a string breaking the code
You can paste the example code in IDE and check.
This is what it looks like for me :

1747476115882.png
 
Upvote 0
Top