Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 10th, 2008, 09:08 AM
rcaero rcaero is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 5 rcaero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 40 sec
Reputation Power: 0
Lightbulb What-if in Delphi

I want to present the user with a Profit & Loss statement( sales - expenses = profit) and give the user the ability to change the sales revenue and/or expenses to see the impact on profit. Instead of porting this data to an Excel spreadsheet, I would like to know the best way to do this within a Delphi application. What configuration would be best here? A custom grid? If not, what do you recommend? Thank you.

Reply With Quote
  #2  
Old April 14th, 2008, 03:20 PM
RussCA RussCA is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 RussCA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 14 sec
Reputation Power: 0
Use Excel?

Have you thought about using Excel instead of a specialized program?

Reply With Quote
  #3  
Old April 14th, 2008, 03:36 PM
rcaero rcaero is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 5 rcaero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 40 sec
Reputation Power: 0
What-if In Delphi

Quote:
Originally Posted by RussCA
Have you thought about using Excel instead of a specialized program?


I'm looking into using Excel. The About site has a good article on accessing an Excel spreadsheet with delphi, for the purpose of doing analysis in the spreadsheet.
It would be more convenient for Users if they didn't need to have Excel and have it running.
Thanks for your feedback.

Reply With Quote
  #4  
Old April 14th, 2008, 05:38 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 713 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 48 m 33 sec
Reputation Power: 12
If you do not want to use the Excel ActiveX server in a Delphi form,
take a look at the grids available at
TMS Software

Clive

Reply With Quote
  #5  
Old April 14th, 2008, 06:15 PM
RussCA RussCA is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 RussCA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 14 sec
Reputation Power: 0
What if in Delphi

Well, that depends. Where are the data stored? Will the user add sales and/expenses in order to get a desired "profit" figure? Will this data be intered into the database or whatever you're using? So far, the only three things you've told us about are Sales , Expenses, and Profit. Perhaps a more complete statement about the over all task you are trying to implement would help.

Reply With Quote
  #6  
Old April 15th, 2008, 05:51 PM
rcaero rcaero is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 5 rcaero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 40 sec
Reputation Power: 0
Quote:
Originally Posted by RussCA
Well, that depends. Where are the data stored? Will the user add sales and/expenses in order to get a desired "profit" figure? Will this data be intered into the database or whatever you're using? So far, the only three things you've told us about are Sales , Expenses, and Profit. Perhaps a more complete statement about the over all task you are trying to implement would help.


I plan to store the data in an Access database and want to do the analysis in Delphi. The About Delphi Programming site has a good article on Accessing and Managing Data in Excel and I may have to go that way. Before that, I'd like to see if there is a way to do it without Excel, which Users would need to have running.

Reply With Quote
  #7  
Old April 21st, 2008, 09:09 AM
RussCA RussCA is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 RussCA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 14 sec
Reputation Power: 0
Quote:
Originally Posted by rcaero
I plan to store the data in an Access database and want to do the analysis in Delphi. The About Delphi Programming site has a good article on Accessing and Managing Data in Excel and I may have to go that way. Before that, I'd like to see if there is a way to do it without Excel, which Users would need to have running.


Is there any particular reason you want to do the programming in Delphi? As a learning experience perhaps?

I believe the whole task could be accomplished in Access itself, perhaps with some VBA code.

Or do you want to train people on how to "cook the books"?

Reply With Quote
  #8  
Old April 22nd, 2008, 10:15 AM
rcaero rcaero is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 5 rcaero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 40 sec
Reputation Power: 0
What-if With Delphi

Quote:
Originally Posted by RussCA
Is there any particular reason you want to do the programming in Delphi? As a learning experience perhaps?

I believe the whole task could be accomplished in Access itself, perhaps with some VBA code.

Or do you want to train people on how to "cook the books"?


[FONT=Comic Sans MS] Yes and No!
Yes: I'm trying to learn Delphi and it's a good exercize.

No: There are too many people right now, who already know how to cook the books.
Thanks.[/
FONT]

Reply With Quote
  #9  
Old April 22nd, 2008, 12:44 PM
RussCA RussCA is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 RussCA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 14 sec
Reputation Power: 0
"what-if" in Delphi

Quote:
Originally Posted by rcaero
I want to present the user with a Profit & Loss statement( sales - expenses = profit) and give the user the ability to change the sales revenue and/or expenses to see the impact on profit. Instead of porting this data to an Excel spreadsheet, I would like to know the best way to do this within a Delphi application. What configuration would be best here? A custom grid? If not, what do you recommend? Thank you.


Let's see. Assume we have the following:

Sales: $100.00
Expenses: $200.00
=====
Loss: ($100.00)

I can look at this and say to myself: "Self, I need $100 more in sales to break even. If I get $200 more in sales, I will make $100 profit."

I don't need a computer program to tell me this.

Reply With Quote
  #10  
Old April 23rd, 2008, 07:26 AM
rcaero rcaero is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 5 rcaero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 40 sec
Reputation Power: 0
What-if With Delphi

Quote:
Originally Posted by RussCA
Let's see. Assume we have the following:

Sales: $100.00
Expenses: $200.00
=====
Loss: ($100.00)

I can look at this and say to myself: "Self, I need $100 more in sales to break even. If I get $200 more in sales, I will make $100 profit."

I don't need a computer program to tell me this.


Very true Russ, but this elementary example doesn't give any information about what is causing the loss. The analysis will be a lot more complex.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > What-if in Delphi


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway