Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graphing
Message
De
30/12/2006 13:23:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
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:
01181073
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform