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>areplicate() - replicate a string to the screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     areplicate() - replicate a string to the screen
  Usage:    areplicate(<row>,<col>,<string>,<num>,[<attrib>])
  Params:   integer <row> - the row to start printing at
            integer <col> - the column to start printing at
            string <string> - the string to replicate
            integer <num> - the number of times to replicate
            the string passed. If negative, the string is replicated
            to the left. If positive, the string is replicated to the
            right (normal).
            integer <attrib> - the attribute to use based on
            FUNCky's (16*background)+foreground)) notation.
            Optional, if left off, or -1, then Clipper's
            standard foreground color is used.

  Returns:  nothing

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

                 areplicate(0,0,"-",80,23)
                 * prints 80 dashes at 0,0 in White on blue

                 areplicate(10,0,"dLESKO",5)
                 * prints dLESKO 5x at 10,0 in Clipper's
                 * standard foreground color

  Note:     Areplicate() will write to the video page or
            virtual screen currently defined by setscreen(). If
            you resize a virtual window with setscreen(), make sure
            your areplicate() is contained within your maximum
            virtual window coordinates. areplicate() and vreplicate()
            are useful to write quick graphs and logos or special
            shaped boxes.


See Also: vreplicate() print() box() setscreen()

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