data types - quick question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there, just a quick one for you geniouses.

I'm working with vb.net on a ppc.

Which data type is best to use, i need to insert and REMOVE a librarian
id#(string), their location(integer) and a time.

I was using multi-dimension array quite happily

myarray(i,0) = "123456"
myarray(i,1) = 2
myarray(i,2) = 11:26

Now i come to removing the entry its got more complicated and i wondered if
there was a better way of doing this???????

Please help, thanks ever so much.
 
Consider using your own data type which would contain all the fields you
need:

Public Class SomeStiff
Public ID As String
Public Location As Int32
Public Time As DateTime
End Class

You can use ArrayList or Hashtable to store such objects; it would be easy
to add/remove them.

Or use DataTable with columns you want.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
thanks fantastic

"Ilya Tumanov [MS]" said:
Consider using your own data type which would contain all the fields you
need:

Public Class SomeStiff
Public ID As String
Public Location As Int32
Public Time As DateTime
End Class

You can use ArrayList or Hashtable to store such objects; it would be easy
to add/remove them.

Or use DataTable with columns you want.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: data types - quick question
thread-index: AcUK78wqTpxfh5Z7ToWMpoLwFDmdlw==
X-WBNR-Posting-Host: 207.216.242.138
From: =?Utf-8?B?SmltYm8xMjk5?= <[email protected]>
Subject: data types - quick question
Date: Fri, 4 Feb 2005 11:29:08 -0800
Lines: 17
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA
03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:70538
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi there, just a quick one for you geniouses.

I'm working with vb.net on a ppc.

Which data type is best to use, i need to insert and REMOVE a librarian
id#(string), their location(integer) and a time.

I was using multi-dimension array quite happily

myarray(i,0) = "123456"
myarray(i,1) = 2
myarray(i,2) = 11:26

Now i come to removing the entry its got more complicated and i wondered if
there was a better way of doing this???????

Please help, thanks ever so much.
 
Back
Top