![]() |
<< Index >> |
FutureBasic |
statement | ||
|
Parameter |
Description |
When this optional parameter is used, the first printed character is positioned with its top-left corner at point x,y. If you don't specify this parameter, text appears at the window's current draw position. | |
When this optional parameter is used, the draw position (x,y) is determined by the current font/size as follows: x = width of '0' (zero) character * y = lineHeight * If you don't specify this parameter, text appears at the window's current draw position. |
|
A CFString, pascal string, container, integer, float value is drawn in the window at its current draw position. | |
; |
A comma or semicolon is used to separate print items. A comma inserts a tab character. A semicolon does not cause any space to be inserted between consecutive print items. Normally, |
print @"string"
print @"alpha",@"bravo",@"charlie"
CFStringRef s1, s2, s3, s4
s1 = @"A"
s2 = @"B"
s3 = @"C"
s4 = @"D"
print s1;s2;s3;s4
print %(60,85)@"Text starts at 60x, 85y"
print !(22,11)@"Text starts at column 22, row 11"
print 23 * 3 + 2
Printf Parameters
Parameter |
Description |
When this optional parameter is used, the first printed character is positioned with its top-left corner at point |
|
When this optional parameter is used, the new draw position (x,y) is determined by the current font and size as follows: x = width of '0' (zero) character * y = lineHeight * If you don't specify this parameter, text appears at the window's current draw position. |
|
A CFString containing a formatter string. Same type of formatter as used with |
|
A comma delimited list of arguments corresponding to the formatString |
CFStringRef s = @"String"
long intVal = 45
double dblVal = 2.3456789
printf @"%@ %ld %f" , s, intVal, dblVal
Character |
Description |
When a literal string ends with this character, the draw position is set to the right of the string, and is not moved down to the next line. This is same behavior as the semicolon parameter of the print statement. | |
This inserts a tab character. If a literal string ends with this character, the draw position is set to the right of the string. This is same behavior as the comma parameter of the print statement. |