Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_dbbox() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_DBBOX()

 DESCRIPTION

 The C_DBBOX() function draws a box for use as a data entry screen
 or with functions such as C_SELECT() or ACHOICE().  An unlimited
 number of title lines, column header lines, and command footer
 lines can be specified.

 SYNTAX

 C_DBBOX(st_row, st_col, end_row, end_col [,title] [,header] [,footer] [,box])

 PARAMETERS

 st_row (N), st_col (N), end_row (N), and end_col (N) define the
 upper left and lower right screen coordinates to draw the box.

 title (C/A) is the title to display for the box.  A single title
 line can be specified as a character string or many titles can be
 specified as elements in an array.

 header (C/A) is the column heading to display in the box.  A single
 header line can be specified as a character string or many header
 lines can be specified as elements in an array.

 footer (C/A) is the footer line to display in the box.  A single
 footer line can be specified as a character string or many footer
 lines can be specified as elements in an array.

 box (N) is the type of box to display.  The box types are as
 follows:  0 = no box, 1 = single box, and 2 = double box.  If box
 is not specified, box type 2 (double) is used.

 RETURNS

 There is no return value.

 EXAMPLES

 && The following is an example of how C_DBBOX() could be used with
 && the C_SELECT() function to create titles, headers, and borders.
 use test

 declare a_title[2], a_header[2] && Setup arrays for C_DBBOX()
 a_title[1] = "CUSTOMER LIST"
 a_title[2] = "Active Customers"
 a_header[1] = "Company    Street                             Zip"
 a_header[2] = "Name       Address    City   State  Phone     Code"
 footer = "Press ENTER to Select Record or ESC to Cancel"

 && Display double box, titles, headers, footer
 c_dbbox(10,10,20,70,a_title,a_header,footer,2)

 xflds = c_ftomacro(1,6)           && Load xflds with fields from test.dbf

 c_select(1,11,11,5,xflds, ... )   && Call C_SELECT() to list records


See Also: C_BOX() C_LINE() C_VLINE() C_SELECT()

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