with ox.charts(1)
* SetSourceData(Range[, PlotBy]) && Plotby - xlRows, xlColumns
#define xlRows 1
#define xlColumns 2
.SetSourceData(ox.ActiveWorkBook.Sheets(1).Range("A1:C3"))
* Notice you can use "A1:C3" too for range if you prefer
* instead of lengthy cells()..
endwithThis code part also removes the need for :
ox.charts(1).plotby = 2
Now it's included. Plotby = 2 (xlColumns) is best suited to us Foxers because we really keep data in column format. Default chart format is by rows (PlotBy = 1).
I don't use any other doc other than default hlp files in ..\Microsoft Office\Office (vba*.hlp). Just from time to time I record a macro in Excel or Word and copy, paste the macro code to VFP, do some retouching to fit VFP syntax and "done" :)
Maybe the best learning is while I answer on UT :)
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