Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graph / msgraph.chart Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00391259
Message ID:
00391442
Vues:
10
>Well I did no #define and all the code worked fine for me
>
>
>Stephen McLaughlin
>"Blastmaster"
>stephenmclaughlin@email.com


Sorry for not being clearer. The #DEFINE is only needed if you will be using sample code from MSDN where the code might be.

myChart.ChartType = xlColumnClustered


Doing a copy and paste will not work with this, VFP has no idea of what xlColumnClustered is. You will need the #DEFINE to let VFP know what "xlColumnClustered" is. In this case you would want.

#DEFINE xlColumnClustered 51


This will create the constant of xlColumnClustered with the value of 51. So anywhere in the code that you put "xlColumnClustered" it will substitue the value of "51" for it, making the code easier to read and understand.

Hope this makes things a little clearer.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform