Strings 2000

Erel

B4X founder
Staff member
Licensed User
Longtime User
What is the output of this code?

SS-2015-01-21_17.40.14.png
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You are almost correct. I see three mistakes (one is not really related).

Are you sure this works?
It will in the next version. This is a new string literal that makes it easier to create strings. The three main advantages: multiline, (formatted) string interpolation and no need to escape quotes.
 
Last edited:

MikeH

Well-Known Member
Licensed User
Longtime User
Example 1
Example 2
Example 3:
The value of FirstTime is True.
10 / 3 = 3.33
Sin (45) = 2.72
Today is 21/01/2015
 

sorex

Expert
Licensed User
Longtime User
@Erel : just wondering...

what is the point of these $ wrapped around the string in the first line?
why don't you need double quotes there like we need for normal strings?
 

sorex

Expert
Licensed User
Longtime User
any chance that this would be the default for all string operations? :)

PHP also has this variables in strings method ( echo "the time is $now in {$myarray[0]}"; )

easier (to read) than all the concating
 
Top