Roselene
Jan 4th, 2000, 07:28 PM
Hi, everybody!
I have a standard list box, which is filled in by the following module: ( form load event)
===================
MyListbox.AddItem "Load"
MyListbox.ItemData(MyListbox.NewIndex) = 1
MyListbox.AddItem "Transportation"
MyListbox.ItemData(MyListbox.NewIndex) = 2
MyListbox.AddItem "Both"
MyListbox.ItemData(MyListbox.NewIndex) = 3
=========================
My list box is connected to a Data Control on the DataSource Property and to a Table Field on the DataField property. I’d like to send only the numbers (1,2,3) to the field . Have tried to change some properties, but so far I could only have the names (Load, transportation and both) stored on the table.
I’m not sure if the command <MyListbox.ItemData(MyListbox.NewIndex) = 1> is appropriate to be used in this situation.
Thanks in advance,
Roselene
I have a standard list box, which is filled in by the following module: ( form load event)
===================
MyListbox.AddItem "Load"
MyListbox.ItemData(MyListbox.NewIndex) = 1
MyListbox.AddItem "Transportation"
MyListbox.ItemData(MyListbox.NewIndex) = 2
MyListbox.AddItem "Both"
MyListbox.ItemData(MyListbox.NewIndex) = 3
=========================
My list box is connected to a Data Control on the DataSource Property and to a Table Field on the DataField property. I’d like to send only the numbers (1,2,3) to the field . Have tried to change some properties, but so far I could only have the names (Load, transportation and both) stored on the table.
I’m not sure if the command <MyListbox.ItemData(MyListbox.NewIndex) = 1> is appropriate to be used in this situation.
Thanks in advance,
Roselene