Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graphing
Message
From
30/12/2006 13:23:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/12/2006 13:14:49
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01181071
Message ID:
01181073
Views:
19
>When I run the code below, from a method, it cannot find oChart.
>Besides being an object, what is oChart?

It should be an Ole object that you put on the form. Maybe you did, but under a different name?

>* MSGraph
>
>Use analtemp Alias analyse
>* analtemp contains the 12 numbers for the months in one field
>*and 12 numbers to be graphed in the second.
>Create CURSOR csrResult (statvalue n(5), statmonth n(2))
>Select * from analyse into cursor csrResult
>* (SalesID c(6), SaleName Character(20))
>LOCAL lnCol, lnRow
>WITH THISFORM.oChart
>  *** Set the number of fields in the cursor
>  .ColumnCount = FCOUNT( 'csrResult' ) - 1
>
>  *** Set the number of rows to the number of records in the cursor
>  .RowCount = RECCOUNT( 'csrResult' )
>
>  *** Populate the DataGrid Object.
>  SELECT analyse
>  SCAN
>    .Row = RECNO( 'csrResult' )
>    FOR lnCol = 1 TO .ColumnCount
>      .Column = lnCol
>      *** Since the first column is used for the category labels
>      *** We must increment our counter
>      .Data = EVALUATE( FIELD( lnCol + 1 ) )
>    ENDFOR
>  ENDSCAN
>ENDWITH
>

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform