Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: frank
  Where is frank?
 
 Indonesia
 frank
 Tags
Subject: RE: FoxCharts
Thread ID: 310631 Message ID: 310889 # Views: 36 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Windows Vista and VFP
Date: Monday, June 27, 2011 2:19:48 AM         
   


> Hello all,
>
> I wonder if you guys can help me with the FoxChart class from vfpx.
> I have a problem with recno() from the acoord array for charttype=4 (the points chart) since it is not giving me the right record number.
> When I use different type of charttype like charttype=5, it is giving me the right record number.
>
> What is wrong is this:
> with charttype=4 the recno() is 1,1,2,3,4,5
> with charttype=5 the recno() is 1,2,3,4,5,6 (since it's the record number)
>
> This looks like not a big problem but when we have a multiple lines, the recno() is really critical to refer to the right corresponding columns to give a valid response to the user.
>
> I wonder if you guys can help me pointing out the wrong code in the foxchart class so I can fix this problem.
> Thank you.
>
> frank sinatha

Relying on recno() is a bad practice. Use primary keys from the tables whenever possible.

Mike Yearwood
Microsoft MVP Visual FoxPro 2008, 2009
We have enough youth. We need a fountain of smart!
There may be many ways to skin a cat, but there are very few right ways to do it.

ENTIRE THREAD

FoxCharts Posted by frank sinatha @ 6/23/2011 5:02:24 AM
RE: FoxCharts Posted by Koen Piller @ 6/23/2011 9:10:21 AM
RE: FoxCharts Posted by frank sinatha @ 6/23/2011 2:20:57 PM
RE: FoxCharts Posted by Koen Piller @ 6/24/2011 2:49:10 AM
RE: FoxCharts Posted by frank sinatha @ 6/24/2011 3:50:59 AM
RE: FoxCharts Posted by Koen Piller @ 6/24/2011 10:39:52 AM
RE: FoxCharts Posted by Yousfi Benameur @ 6/23/2011 12:56:44 PM
RE: FoxCharts Posted by frank sinatha @ 6/23/2011 2:20:23 PM
RE: FoxCharts Posted by Yousfi Benameur @ 6/23/2011 3:02:45 PM
RE: FoxCharts Posted by frank sinatha @ 6/24/2011 3:53:04 AM
RE: FoxCharts Posted by Yousfi Benameur @ 6/24/2011 12:41:00 PM
RE: FoxCharts Posted by Koen Piller @ 6/24/2011 12:52:44 PM
RE: FoxCharts Posted by Yousfi Benameur @ 6/25/2011 8:34:02 AM
RE: FoxCharts Posted by Koen Piller @ 6/26/2011 1:36:07 AM
RE: FoxCharts Posted by Yousfi Benameur @ 6/26/2011 8:54:44 PM
RE: FoxCharts Posted by Mike Yearwood @ 6/27/2011 2:19:48 AM