Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graphing
Message
De
30/12/2006 15:11:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/12/2006 13:14:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01181071
Message ID:
01181084
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform