Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfvsay()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfVSay()
Displays a text string in virtual mode
------------------------------------------------------------------------------
Syntax:

     dfVSay( <a2Say>, [<nRow>], [<nCol>],;
             [<nTop>], [<nLeft>], [<nBottom>], [<nRight>],;
             [<cColor>] ) --> NIL

Parameters:

     <a2Say>    Array that contains the strings to display.
     <nRow>     Row offset. It can be positive or negative. The default is
     0.
     <nCol>     Column offset. It can be positive or negative. The default
     is 0.
     <nTop>, <nLeft>, <nBottom>, <nRight> Screen coordinates. The default
     value is to consider the full screen.
     <cColor>   String color. The default is the current SETCOLOR().

Returns:

     NIL

Description:

     The strings stored in <a2Say> are displayed on the screen in virtual
     mode. The text is positioned within a given area, exploiting two given
     row and column offsets.

Example:

     LOCAL aLogo := {}, nCol := 0, lLeft := .T.
     aAdd( aLogo, "#####   ###    ### ")
     aAdd( aLogo, "  #    #   #  #   #")
     aAdd( aLogo, "  #    #      #   #")
     aAdd( aLogo, "  #     ###   #####")
     aAdd( aLogo, "  #        #  #   #")
     aAdd( aLogo, "  #    #   #  #   #")
     aAdd( aLogo, "#####   ###   #   #")
     WHILE dfInkey()#27
        dfVSay( aLogo, 0, nCol)
        IF lLeft
           nCol-- ; IF nCol<-20;lLeft:=!lLeft ; END
        ELSE
           nCol++ ; IF nCol>20 ;lLeft:=!lLeft ; END
        END
     END

See also:

     dfSay()

See Also: dfSay()

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