Futurebasic/Language/Reference/pos

Description
This function returns a number which means different things depending on the value of. Use one of the following values for.

¥   returns information about the number of characters sent by the  statement to screen windows or to the device specified by the most recent   statement. The value of  is incremented whenever you print a character (other than a carriage-return) to any open window or to the  'd device. The value of  is reset to zero whenever any of the following happens:

 You send a carriage-return character to any window or 'd device (this is usually the final character sent by a   statement); or:

The text in any window or 'd device reaches the right margin and wraps around to the next line; or:

You open a new window with the  statement; or:

You start a new print job with the  statement.



Note
often, but not always, represents the number of characters on the current line of text. However, because FB does not maintain separate  values for separate windows, the value returned by   may represent the characters on a line in the current window, or on a line in a different window, or even the sum of the characters on lines in multiple windows.

¥   returns the number of characters printed so far on the current line of text sent to the printer. The value of  is incremented whenever you send a chacter (other than carriage-return) to the printer; the value is reset to zero whenever you send a carriage-return character to the printer, or the text reaches the right margin and wraps around to the next line.

¥   returns information about characters sent to open files. The value of  is incremented whenever you send a character (other than carriage- return) to any open file; the value is reset to zero whenever you send a carriage-return character to any open file. Note that if you have more than one file open, the value returned by  reflects the sum of the characters sent to all the files you're writing to. If you write a total of more than 32767 characters (to all open files) without writing a carriage-return character, the number returned by  is invalid.

Note:> To determine the current horizontal pen position (in pixels), use the function.