List

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Better but still clumpsy

    List


    Looking for function that made it simple to do with combo cox.

    1. list_clear(comb o_list)
    This one is simple and easy to make it
    2. list_add(combo_ list,ix,str)
    3. list_remove(com bo_list,ix)
    4. list_get_sel_in dex(combo_list)
    5. list_set_sel_in dex(combo_list)

    I think I can do with (1),(4) and (5) and maybe(3). But
    (4) is little mysterious to me.
    I looked at W3 and O'Reilly book and found nothing about
    adding an item to the combo box.

    Thanks.
  • Mick White

    #2
    Re: List

    Better but still clumpsy wrote:
    [color=blue]
    > Looking for function that made it simple to do with combo cox.
    >
    > 1. list_clear(comb o_list)
    > This one is simple and easy to make it
    > 2. list_add(combo_ list,ix,str)
    > 3. list_remove(com bo_list,ix)
    > 4. list_get_sel_in dex(combo_list)
    > 5. list_set_sel_in dex(combo_list)
    >
    > I think I can do with (1),(4) and (5) and maybe(3). But
    > (4) is little mysterious to me.
    > I looked at W3 and O'Reilly book and found nothing about
    > adding an item to the combo box.
    >[/color]
    #2:
    combo_list.opti ons[combo_list.opti ons.length]=new Option(ix,str);
    Where ix==value and str=text (or vv)
    Mick

    Comment

    • Better but still clumpsy

      #3
      Re: List


      Thanks. It is working. And I can write the five functions.

      Mick White <mwhite13BOGUS@ rochester.rr.co m> writes:
      [color=blue]
      > Better but still clumpsy wrote:
      >[color=green]
      > > Looking for function that made it simple to do with combo cox.
      > > 1. list_clear(comb o_list)
      > > This one is simple and easy to make it
      > > 2. list_add(combo_ list,ix,str)
      > > 3. list_remove(com bo_list,ix)
      > > 4. list_get_sel_in dex(combo_list)
      > > 5. list_set_sel_in dex(combo_list)
      > > I think I can do with (1),(4) and (5) and maybe(3). But
      > > (4) is little mysterious to me.
      > > I looked at W3 and O'Reilly book and found nothing about
      > > adding an item to the combo box.
      > >[/color]
      > #2:
      > combo_list.opti ons[combo_list.opti ons.length]=new Option(ix,str);
      > Where ix==value and str=text (or vv)
      > Mick[/color]

      Comment

      • mscir

        #4
        Re: List

        Better but still clumpsy wrote:
        [color=blue]
        > Looking for function that made it simple to do with combo cox.
        >
        > 1. list_clear(comb o_list)
        > This one is simple and easy to make it
        > 2. list_add(combo_ list,ix,str)
        > 3. list_remove(com bo_list,ix)
        > 4. list_get_sel_in dex(combo_list)
        > 5. list_set_sel_in dex(combo_list)
        >
        > I think I can do with (1),(4) and (5) and maybe(3). But
        > (4) is little mysterious to me.
        > I looked at W3 and O'Reilly book and found nothing about
        > adding an item to the combo box.
        >
        > Thanks.[/color]

        I know your question was answered, but you might want to take a look at
        these great examples, really nice code:




        Mike

        Comment

        Working...