+ Reply to Thread
Results 1 to 2 of 2

Assigning numeric value to text in drop-down menu

Hybrid View

  1. #1
    rayapura@gmail.com
    Guest

    Assigning numeric value to text in drop-down menu

    I am trying to create a drop-down list of materials and would like to
    assign different numeric values to each material,which will be used in
    calculations i.e. Under drop-down list of Materials, Wood=1, Steel=2,
    etc.
    Please help!!

    -Aarthi


  2. #2
    K Dales
    Guest

    RE: Assigning numeric value to text in drop-down menu

    What you are describing is a 2 column combobox. Create the combobox and in
    its properties set the columncount to 2. If you want to hide the numeric
    values from your users set its column's width to zero. To refer to the
    selected value from code it is Combobox1.Column(0) for the first column,
    Combobox1.Column(1) for the second column.
    --
    - K Dales


    "rayapura@gmail.com" wrote:

    > I am trying to create a drop-down list of materials and would like to
    > assign different numeric values to each material,which will be used in
    > calculations i.e. Under drop-down list of Materials, Wood=1, Steel=2,
    > etc.
    > Please help!!
    >
    > -Aarthi
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1