ErosOlmi
07-10-2007, 22:50
What about a new mad feature: multiline feature made easy to create big strings. You just need to close with " at the end after many lines of code. This can be useful for CGI applications where you have to output HTML code.
Also concatenation and assignment using same notation as php, that is using point.
Example:
dim s as string
s = "This is a multiline string. Next thinBasic release
will support this kind of statements. Still some
features to be fixed like
- leave left spaces or tabs as formatted by user
- let thinAir understand multilines string
In any case, so far, this feature seems quite powerful.
"
s .= "----------------------------------------------------------------------
Strings can also be concatenated using . (point)
like in php scripting language
"
s .= "----------------------------------------------------------------------
Concatenation with . can also takes place in parsin.
Here for example you should see the number 100:" . str$(10*10) . "
and here the len of this string since it was before this last
concatenation: " . len(s) . $crlf
s .= "----------------------------------------------------------------------
What do you think? :D"
msgbox 0, s
Get attached thinCore.dll file and if you have some time to test, let me know results.
Thanks a lot
Eros
_________________________________________________
UPDATES:
2007.10.08: fixed incorrect delimiter error reported by Petr.
ADDED:
attached file removed. Feature already present in current thinBasic preview release.
Also concatenation and assignment using same notation as php, that is using point.
Example:
dim s as string
s = "This is a multiline string. Next thinBasic release
will support this kind of statements. Still some
features to be fixed like
- leave left spaces or tabs as formatted by user
- let thinAir understand multilines string
In any case, so far, this feature seems quite powerful.
"
s .= "----------------------------------------------------------------------
Strings can also be concatenated using . (point)
like in php scripting language
"
s .= "----------------------------------------------------------------------
Concatenation with . can also takes place in parsin.
Here for example you should see the number 100:" . str$(10*10) . "
and here the len of this string since it was before this last
concatenation: " . len(s) . $crlf
s .= "----------------------------------------------------------------------
What do you think? :D"
msgbox 0, s
Get attached thinCore.dll file and if you have some time to test, let me know results.
Thanks a lot
Eros
_________________________________________________
UPDATES:
2007.10.08: fixed incorrect delimiter error reported by Petr.
ADDED:
attached file removed. Feature already present in current thinBasic preview release.