uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
variable weights

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-18-17 12:56 PM EST
Original Message
variable weights
Author stef bishop on 04-25-2001 at 04:29 (EST)
I'm thinking of creating a custom applet.
It needs to be like uShopinput4 but for each option I need to be able to define a corresponding weight. i.e a comma separated list of weights in the weight parameter, one for each option.
The problem is how can I figure out which weight value to select from the list?
Can I obtain an index number of the selected option or scan the list for the selected option?

cheers STEF
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: variable weights Bill Weiner, 2001-04-25 22:43:16 (1)

Messages In This Discussion
         1. RE: variable weights
        Author Bill Weiner on 04-25-2001 at 22:43 (EST)
If you are going to be writing your own custom Java applet... and possibly using a "Choice" drop-down component, then you can use the:

Choice.getSelectedIndex()

... function to get the index of the option that was select. Perhaps you can then use that index to lookup the weight.

See http://www.ora.com/info/java/qref11/java.awt.Choice.html for more information about the methods available with a Choice AWT Java component.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.