• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I need help writing a function

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic