I know I can use print using, but why the leading space?
Code: Select all
c = ","
print #out_f, "NUM_CARDS";c;o_ncards
NUM_CARDS, 5
Thanks,
Darren
Code: Select all
c = ","
print #out_f, "NUM_CARDS";c;o_ncards
Indeed, the leading space is for the sign. If you want to get rid of it (in case of positive integers), simply convert the number before printing (either with the & string contatenation operator or with the str() function:dkr wrote:...
I know I can use print using, but why the leading space?
...
Code: Select all
dim as integer _
o_ncards => 5
dim as string _
c => ","
? "NUM_CARDS"; c; o_ncards
? "NUM_CARDS"; c & o_ncards
? "NUM_CARDS"; c; str( o_ncards )
sleep()