Thanks Eros, I am delighted to be here!
That example is almost perfect. The only thing you can't do is embed inner quotes within the string.
For example " mov al,'a' ". Hence my use of curly braces to signify an envelope of data which could incorporate quote marks
[code=thinbasic]dim MyString as string {
this is a multiline
_string up to ...
a lot of bytes
including quote marks
' ' " "
and further nested { .. } curly braces
}
msgbox 0, MyString
[/code]
As you can see from languages that adopt C syntax, the versatile braces encompass a multitude of sins. I think you will find them useful for ThinBasic in a whole variety of ways of expressing data and language extensions.
Hwyl!
Charles
Bookmarks