Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

SNAKE( cString, nTr, nTc, nBr, nBc, nColwidth )

Purpose

Output a snaking list of character strings.

Arguments

     cString -- string to display

     nTr,...nBc -- coordinates of snaking window

     nColwidth -- width of one column

Setup

You would put this function in a loop. Before the loop, SNAKENEW() must be
called to initialize the list. Then, call SNAKE() once for each iteration
of the loop, outputting a new string each time.

Example

     USE CUSTOMER
     SNAKENEW()

     DO WHILE !EOF()
         SNAKE( Last_Name, 5, 15, 18, 68, 12 )
         SKIP
     ENDDO

Returns

.T.

Side Effects

Paints a snaking list of items on the screen. If there are more items to
list than there is room, the list will wrap to the beginning, overwriting
earlier entries.

Artful Calls

None.

Source File

AA_SNAKE.PRG

Notes

The list which is outputted is not scrollable. For that, use something
like ACHOICE() or TBROWSE() (though you'll have to do some complex work to
make it snake).

A snaking list is a multi-column list of items. To read the list, you move
down a column, and when you reach the end, you move to the top of the
column to the right. If you're still confused, have a look at a newspaper
or magazine article!

This function begs to be converted to an object.

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