[ Home ] [ Features ] [ Products ] [ FAQ's ] [ Screens ] [ Support ] [ Downloads ] [ About ] [ Discussion ]


the software that grows with you

 

V32Brw2Graph()

Converts given browser to a graphical display.

Syntax

V32Brw2Graph( <oBrw>, <ncType>, <cTitleTop>, <cTitleLeft>, <cTitleBottom>, <cBkGdBitmap>, <cRowCol> )

Arguments

oBrw A fully configured browser object previously created with TBrowseNew() or TBrowseDB() class.
ncType One of the following values, either as numeric or character:
LINE 1
BARS 2
AREA 3
PIE 4
cTitleTop See V32Graph() function for detailed description.
cTitleLeft See V32Graph() function for detailed description.
cTitleBottom See V32Graph() function for detailed description.
cBkGdBitmap See V32Graph() function for detailed description.
cRowCol Intial setting how data of <oBrw> will be presented for display. It can be one of the following two vallues, default is 'ROW'.
'ROW' 'COL'

Returns

NIL

Description

V32Brw2Graph() converts the contents of <oBrw> into graphical data and sends it to V32Graphs() function. To convert <oBrw> to a meaningful graph, it must contain at least one numeric field at a bare minimum. Additionaly if one character or date field is also present, graph will be more tangible. 

ROW: All numeric columns will be considered series data and will become columns of <aData>. Rows will become the rows of <aData>. First character or date column will become  the basis for <aLabels>. Column headings of numeric columns will be considered as <aLegends>.

COL: Rows of <oBrw> will constitute column data of <aData>. Columns of <oBrw> will become rows for <aData>. First column of type character or date of <oBrw> will constitute <aLegends> and column headings of numeric columns will constitute for <aLabels>.

Please note that this function may not display meaningful graph if either the numeric columns are in access or rows in browser are too much. Of course, graphical representation is limited by screen resolution only.

Note that the control will return back to the application as soon as processing of <oBrw> will come to an end. Then graphic window will become independent of your application window. This way you can create as many graph windows as you like ( restricted by the system resources only ) and can view them side by side.

To know what <aData>, <aLabels>, <aLegends> does represent, please review the V32Graphs() function.

Usage

lEnd := .f.

While !lEnd
      oBrowse:ForceStable()

       nKey = InKey( 0 )

       do case
       case nKey == K_ESC
            lEnd = .t.

       case nKey == K_ENTER
            lEnd := .t.

       case nKey == K_DOWN
            oBrowse:Down()

       case nKey == K_UP
             oBrowse:Up()

       case nKey == K_F10
              V32Brw2Graph( oBrowse,  'BARS', 'My Favoutite Browser', 'Vouchers', 'Figures in $' )

       endcase 
End

Tips

 

 

[ Home ][ Features ] [ Products ][ About Us ][ FAQ's ][ Screen Shots ][ Downloads ][ Support ][ Discussion ]
.

Vouch is a Trademark of Pritpal Bedi
All other Trade Marks are the property of their respective owners.
Copyright 1993-2011 Pritpal Bedi. All rights reserved.
Hit Counter  
You are Visitor # since 14 May 2002