G
Guest
I need to create a public multi-dim array that can hold a mixture of string
and int values. I will need to search this array for a value and return a
value from a subscript.
This array will expand as it reads in records, so I will need to preserve
the current contents.
For example, I currently do this in Visual Foxpro.
Public laList(1,5)
j=1
select mydataset
scan
dimension myList(j,5) && Resize the array
lcName=mydataset.customername
laList[j,1]=j
laList[j,2]=0123456789
laList[j,3]=lcName
laList[j,4]='Name'
laList[j,5]='1,2'
j=j+1
endscan
When I click on a control on the form, I search the laList array for the
controls value laList[j,5], and read the corresponding laList[j,2] value
which in turns gets another set of data and populates a different control.
How can I accomplish this in VB.Net ???
Thanks.
and int values. I will need to search this array for a value and return a
value from a subscript.
This array will expand as it reads in records, so I will need to preserve
the current contents.
For example, I currently do this in Visual Foxpro.
Public laList(1,5)
j=1
select mydataset
scan
dimension myList(j,5) && Resize the array
lcName=mydataset.customername
laList[j,1]=j
laList[j,2]=0123456789
laList[j,3]=lcName
laList[j,4]='Name'
laList[j,5]='1,2'
j=j+1
endscan
When I click on a control on the form, I search the laList array for the
controls value laList[j,5], and read the corresponding laList[j,2] value
which in turns gets another set of data and populates a different control.
How can I accomplish this in VB.Net ???
Thanks.