Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need help writing a function

 
Juliette Echo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Juliette Echo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic