aspose file tools*
The moose likes Beginning Java and the fly likes I need help writing a function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I need help writing a function" Watch "I need help writing a function" New topic
Author

I need help writing a function

Juliette Echo
Greenhorn

Joined: Apr 19, 2005
Posts: 5
I am creating a functiion that calculates the the order cost for an item in a product table, and calculates the tax . My function line is: function-subprice (pricename, qtyname, subname) This is as far as I got before I completely lost my mind!! I hope this doesn't qualify as "complex" by your standards Big Moose.
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Could you give us a little more context about what this code is running in? I could be totally off here, but it looks more like JavaScript than Java to me. Perhaps if you compile and get errors, or run and get errors or exceptions, you could post those too.


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Juliette Echo
Greenhorn

Joined: Apr 19, 2005
Posts: 5
You are correct, I meant JS not Java. I tried posting the entire page and I get an error message. I am going to try again later. Thanks!
Juliette Echo
Greenhorn

Joined: Apr 19, 2005
Posts: 5
You are correct, I meant JS not Java. I tried posting the entire page and I get an error message. I am going to try again later. Thanks!
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
We have another forum for JavaScript. This forum is for Java only, so please don't post it here. (The folks on the JavaScript forum will be much more ready, willing, and able to help you.)

Good luck!
[ April 19, 2005: Message edited by: Jeff Bosch ]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
JavaScript is not the same as Java. These two languages are not even related, in fact. I suggest that you mosey over to our HTML and JavaScript forum. The people there will be more likely to be able to help you.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I need help writing a function