Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - browse() automatic full featured fivewin browse http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Browse()               Automatic full featured FiveWin browse
--------------------------------------------------------------------------------

   Syntax:              Browse( cTitle, cListName, bNew, bModify, bDelete,;
                                bSearch, bList )  --> nil


   Parameters:

     <cTitle>           The principal title for the Fivewin browse.
     <cListName>        This is the name of the data to see in browse.
     <bNnew>            This CodeBlock is used to add a New Record.

     <bModify>          This CodeBlock is used to Modify the record.
     <bDelete>          This CodeBlock is used to delete the record.

     <bSearch>          This CodeBlock is used to search for data.
     <bList>            This CodeBlock is used to list to the printer.


   Observations:        This is a self contained Clipper-Fivewin traditional
                        dBase-III-Plus like Browse, very useful for prototyping
                        applications.

   Sample:

        static function Main()

        local cTitle    := "This is a FiveWin Browse Sample."
        local cListName := "NAME, ADDRESS, TELEPHONE"
        local bNew      := { || MsgInfo( "Add a New Record" ) }
        local bModify   := { || MsgInfo( "Modify an existing record" ) }
        local bDelete   := { || MsgInfo( "Delete a record" ) }
        local bSearch   := { || MsgYesNo( "Do you want to search some thing? " ) }
        local bList     := { || MsgYesNo( "Do you want a report list?" ) }

        USE NAME

        Browse( cTitle, cListName, bNnew, bModify, bDelete, bSearch, bList )

        return nil

   Source code:         "..\\source\\function\\browse.prg"

   See also:



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