Code: Select all
str1 = "A#"
str2 = "4"
together = str1 + str2
printf("%s\n", together)
Code: Select all
str1 = "A#"
str2 = "4"
together = str1 + str2
printf("%s\n", together)
Don't forget that everything is numbers in Pixilang :)str1 = "A#"
str2 = "4"
together = str1 + str2
Code: Select all
str1 = "A#"
str2 = "4"
together = ""
strcat( together, str1 )
strcat( together, str2 )
Code: Select all
str1 = "A#"
str2 = "4"
together = ""
sprintf( together, "%s%s", str1, str2 )
Code: Select all
fn function()
{
$scale = 5
t_scale( $scale, $scale, $scale )
$note = "A#"
$octn = "4"
$together = ""
strcat( $together, $note )
strcat( $together, $octn )
print($together,0,0,RED)
t_reset()
}
while 1
{
clear()
// draw text over and over each frame
function()
while( get_event() )
{
if EVT[EVT_TYPE] == EVT_QUIT { halt }
}
frame()
}
Code: Select all
$note = "A#"
$octn = "4"
$together = ""
Code: Select all
$note = 10
$octn = 11
$together = 12
Code: Select all
$note = "A#"
$octn = "4"
$together = ""
$together[ 0 ] = 0 //null character specifies the end of the string
strcat( $together, $note )
strcat( $together, $octn )