Jessie
Nov 9th, 1999, 12:22 PM
ok lets see if i can word this correctly
enough to make sense
lets say i have a list of stuff in a flat file eg
bread|2.50
milk|1.50
cheese|4.50
now i declared a array with this
type TagStuff
strStuff as string
dblCost as double
end type
public S_taglist() as TagStuff
I then only load the first part of the array
into a combolist box that i have done ok no problems.Then when i select the text in the combo box it has to go to a flexgrid with two colums one for the strSuff and another
for dblCost i not sure how to load the dblCost part of the array into the second columm so that when the text is added to the
gird the PROPER cost of the item is added also
Private Sub cmdAddList_Click()
If cboList.Text = "" Then Exit Sub
grdItemSelect.Col = 1
grdItemSelect.Row = intstuffCount + 1
grdItemSelect.Text = cboList.Text
grditemSelect.Col = 2
grdItemselect.Text=????
intStuffCount = intStuffCount + 1
grdMovieSelect.Rows = intStuffCount + 2
cboListText = ""
End
so I'am not sure how to reference these together Please help me I am a newbie to VB
[This message has been edited by Jessie (edited 11-10-1999).]
enough to make sense
lets say i have a list of stuff in a flat file eg
bread|2.50
milk|1.50
cheese|4.50
now i declared a array with this
type TagStuff
strStuff as string
dblCost as double
end type
public S_taglist() as TagStuff
I then only load the first part of the array
into a combolist box that i have done ok no problems.Then when i select the text in the combo box it has to go to a flexgrid with two colums one for the strSuff and another
for dblCost i not sure how to load the dblCost part of the array into the second columm so that when the text is added to the
gird the PROPER cost of the item is added also
Private Sub cmdAddList_Click()
If cboList.Text = "" Then Exit Sub
grdItemSelect.Col = 1
grdItemSelect.Row = intstuffCount + 1
grdItemSelect.Text = cboList.Text
grditemSelect.Col = 2
grdItemselect.Text=????
intStuffCount = intStuffCount + 1
grdMovieSelect.Rows = intStuffCount + 2
cboListText = ""
End
so I'am not sure how to reference these together Please help me I am a newbie to VB
[This message has been edited by Jessie (edited 11-10-1999).]