Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graphing
Message
From
30/12/2006 15:11:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
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:
01181084
Views:
8
>When I run the code below, from a method, it cannot find oChart.
>Besides being an object, what is oChart?
>* 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
>
Grady,
It more looks like MSChart activex' code. Do you have that on your form? Use its name in place of oChart.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform