by Roody_Yogurt » Sat Dec 31, 2011 7:05 am
Nope, you're right, that isn't possible. You can "add" strings, though, by using the "text to" and "dict" commands.
Code: Select all
! add this first line to the beginning of the source file
$MAXDICTEXTEND = 7
! sets aside some space so we can add more words to the dictionary table after compilation
array describearray[7] ! a seven element array can hold six letters
routine DMFB
{
local describe, describe2
print "Original values: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"'"
Describe = "One"
Describe2 = "Two"
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
text to describearray
print Describe;
print describe2;
text to 0
Describe = dict(describearray, 7)
print "Final result: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
print "Sample ends."
}
Also, you wouldn't have to use dict if you weren't actually setting the describe variable to the combined string. You could just fake it, of course:
Code: Select all
!...
text to 0
print "Final result: ";
print " describe = '"; StringPrint(describearray);"' describe2 = '"; describe2;"' "
!...
Nope, you're right, that isn't possible. You can "add" strings, though, by using the "text to" and "dict" commands.
[code]
! add this first line to the beginning of the source file
$MAXDICTEXTEND = 7
! sets aside some space so we can add more words to the dictionary table after compilation
array describearray[7] ! a seven element array can hold six letters
routine DMFB
{
local describe, describe2
print "Original values: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"'"
Describe = "One"
Describe2 = "Two"
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
text to describearray
print Describe;
print describe2;
text to 0
Describe = dict(describearray, 7)
print "Final result: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
print "Sample ends."
}
[/code]
Also, you wouldn't have to use dict if you weren't actually setting the describe variable to the combined string. You could just fake it, of course:
[code]
!...
text to 0
print "Final result: ";
print " describe = '"; StringPrint(describearray);"' describe2 = '"; describe2;"' "
!...
[/code]