Error in Graph_4 Sample

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Error in Graph_4 Sample

Post by esgici »

Hi

Excellent !

Tested, worked fine on Sudip's example.

Thanks a lot.

This is difference between worker ( me ) and the master.

With best regards.

--

Esgici
Attachments
PieGraph.jpg
PieGraph.jpg (29 KiB) Viewed 5195 times
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Error in Graph_4 Sample

Post by Roberto Lopez »

esgici wrote:Hi

Excellent !

Tested, worked fine on Sudip's example.

Thanks a lot.

This is difference between worker ( me ) and the master.

With best regards.

--

Esgici
Thanks!... I'll wrote to you when feel depressed :)

The solution was pretty simple.

When the calculated arc (in degrees) for a part is zero, I avoid the attempt to draw in the main loop of the routine.

That's all.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Error in Graph_4 Sample

Post by Roberto Lopez »

Roberto Lopez wrote: When the calculated arc (in degrees) for a part is zero, I avoid the attempt to draw in the main loop of the routine.
And... the idea come to me from your original message: When the value is near 0% you see 'nothing' in your graph, so it must not be drawn :)

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Error in Graph_4 Sample

Post by esgici »

Hi Roberto
Roberto Lopez wrote:[

... the idea come to me from your original message ...
Thanks, someones dreams and someones achieves.

A confusion occured; I just send a post, now attachment exist but post lost !

So I'll resend.

And, an exaggerated test :

Code: Select all

      SERIES {10^6,1500,0,500,800};
Best Regards

--

Esgici
Attachments
PieGrapEx.jpg
PieGrapEx.jpg (24.24 KiB) Viewed 5166 times
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Error in Graph_4 Sample

Post by sudip »

Hello Roberto,

Thanks a lot! It works fine! :)

Yesterday I installed an add-on software in one of my client's computer, to create graphs from my old application.

I faced the problem in front of my client. :(

Now I can send the corrected software to him. :)

Hi Esgici,

Thank you again for helping so much :)

With best regards to you all.

Sudip
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Error in Graph_4 Sample

Post by Roberto Lopez »

sudip wrote: I faced the problem in front of my client. :(
Now I can send the corrected software to him. :)
The worst things occurs when the clients are even NEAR our apps :)

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Error in Graph_4 Sample

Post by esgici »

rathinagiri wrote:
(In the ADORDD WITH ACCESS DATABASES topic) :

Yes. It was once upon a time.
Hi Rathi

I had know already you are a real diamond; but just learned that you are also a hidden treasure :)

The h_graph.prg doesn't include your name as a copyright notice. IMHO this is a big missing part :(

Hi Roberto and Rathi

I have a humble suggestion on PieGraph :

What are your opinions for changing

value aname+iif(lxval," - "+alltrim(str(series,10,2))+" ("+alltrim(str(degrees / 360 * 100,6,2))+" %)","")

line ( Line no : 1083 ) to

value aname+iif(lxval," - "+alltrim(str(series,19,2))+" ("+alltrim(str(degrees / 360 * 100,6,2))+"%)","")


For a value greater than 7 digit ( integer ) a format overflow occurs and user may assume that the Pie Graph don't accept big numbers.

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Error in Graph_4 Sample

Post by Roberto Lopez »

esgici wrote: The h_graph.prg doesn't include your name as a copyright notice. IMHO this is a big missing part :(
I'll fix it.
esgici wrote: Hi Roberto and Rathi

I have a humble suggestion on PieGraph :

What are your opinions for changing

value aname+iif(lxval," - "+alltrim(str(series,10,2))+" ("+alltrim(str(degrees / 360 * 100,6,2))+" %)","")

line ( Line no : 1083 ) to

value aname+iif(lxval," - "+alltrim(str(series,19,2))+" ("+alltrim(str(degrees / 360 * 100,6,2))+"%)","")


For a value greater than 7 digit ( integer ) a format overflow occurs and user may assume that the Pie Graph don't accept big numbers.

Best Regards

--

Esgici


It looks good. I'll test it.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Error in Graph_4 Sample

Post by sudip »

Hello Roberto,
Roberto said:
The worst things occurs when the clients are even NEAR our apps :)
May be I can't understand what do you mean by "NEAR our apps". Do you want to say that we shouldn't show our products to our clients without thorough testing? Please tell me, because I regard your advice very much. :)

Actually I am very much excited about the new "LIFE LINE" of my old apps!!! (And also for future apps) So I can't resist myself to show the advancement of my old creations to others. :)

With best regards.

Sudip
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Error in Graph_4 Sample

Post by Rathinagiri »

Don't worry Sudip. It is only a lighter way!

See this when you have time.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply