Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graph / msgraph.chart Question
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00391259
Message ID:
00391442
Views:
9
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform