TView

Source: source/classes/tview.prg

TView is a lightweight view stub that associates a name with a set of work areas. It serves as a simple data container for organizing and referencing related database work areas under a single named view. It can be used as a building block for more complex view-management systems.

Key DATA Members

DATATypeDescription
cNameCharacterView name identifier
aWorkAreasArrayArray of associated work area references

Methods

MethodDescription
New( cName )Create a named view with an empty work area list

Example: Create View Object

#include "FiveWin.ch"

function Main()

   local oView

   oView := TView():New( "CustomerOrders" )
   AAdd( oView:aWorkAreas, "CUSTOMER" )
   AAdd( oView:aWorkAreas, "ORDERS" )
   AAdd( oView:aWorkAreas, "ITEMS" )

   MsgInfo( "View: " + oView:cName + " has " + ;
            Str( Len( oView:aWorkAreas ) ) + " work areas" )

return nil

Notes

See Also