Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>print() - print a character string with attribute</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     print() - print a character string with attribute
  Usage:    print(<row>,<col>,<string>,[<attrib>]),[<length>])
  Params:   integer <row> - row to print string at
            integer <col> - column to print string at
            character <string> - string to print

            integer <attrib> - color to use to print string
            (optional) If the <attrib> is left off, or is -1,
            then the current Clipper foreground color is used.

            integer <length> - the length of the string to print. If
            this parameter is included, the string is printed until
            <length> characters have been printed. If <length> is
            left off, then the length of the string is printed. If
            <length> is greater than the length of <string>, then the
            entire string is printed followed by enough spaces to
            fill out <length> characters. If <length> is less than the
            length of <string>, then the string is truncated at <length>
            characters.

 ---------------------------------- Example ---------------------------------

                 print(10,0,"Enter your name:")
                 * prints @ 10,0 using Clipper'sground color

                 print(14,12,"This is truncated at 10 chars",-1,10)
                 * prints only first 10 characters - "This is tr"

                 print(14,12,"This is expanded",23,70)
                 * prints "This is expanded" followed by enough
                 * spaces to expand it to 70 characters

  Note:     Using print() instead of @ ... say results in increased
            execution speed. Using the <length> specifier is
            very useful for menuing routines. The <length> option
            removes the need to add spaces to the end of the string.
            If you are using the timeout() function to display text while
            inside a get or wait state, the results can be more pleasing
            using print() than @ ... say since the cursor is not updated.
            Also note that you might get a little faster execution using
            print over @ ... say.


See Also: box() untrim() palette()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson