Re: Array mixed with integers and strings?
- From: "Miro" <mironagy@xxxxxxxxxx>
- Date: Tue, 22 May 2007 15:13:51 -0400
I tried this too jeff when i first started in vb.net
something like
Array := { "Hello", 2 }
It cant be done easily...
so the solution I used, is I created a Class and the created 2 properties of
it.
1 a string and the other a numeric
Then I arrayified the Class...and worked like a charm.
Another solution I think will work is to create a variable that is a
datagrid, and save the data in there like data lines.
Miro
"Jeff" <none@xxxxxxxxxxxx> wrote in message
news:464da17c$0$16403$88260bb3@xxxxxxxxxxxxxxxxxxxx
...still new to vb.net 2005
I understand the concept of arrays, and have used them in other languages,
but was hoping that someone could get me started with something.
I have a fairly long list of values that start in textboxes and listboxes
that are both integers and strings. I need to store them in an array to
pass to subs and stored procedures used in a database. Can I mix the
integers and strings (both of varying lengths) in the same array? If so,
could someone provide a simple example that I could build upon or point me
in the right direction?
Thanks
Jeff
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Array mixed with integers and strings?
- From: Jeff
- Array mixed with integers and strings?
- Prev by Date: How can I check the data type of a field in the DataReader ?
- Next by Date: Re: How to MAP the drive
- Previous by thread: Re: Array mixed with integers and strings?
- Next by thread: looping through IP address range
- Index(es):
Relevant Pages
|