473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is an array of Objects in vb.net a good equivalent for an array of Variants in v

I have a vb6 app that uses an array of variants, like a
database table that I would like to convert to vb.net.
Does it make sense to use an array of objects in vb.net?

Any other suggestions?

Thanks,

WayneM
Nov 20 '05 #1
4 1122
Cor
Hi Wayne,

There are a database tables in VB.net, why you want to make one of your own?

Cor
Nov 20 '05 #2

"WayneM" <ww*********@aol.com> wrote in message
news:09****************************@phx.gbl...
I have a vb6 app that uses an array of variants, like a
database table that I would like to convert to vb.net.
Does it make sense to use an array of objects in vb.net?

Any other suggestions?

Thanks,

WayneM


To Answer your Question, yes. To go further, I can think of about 50
ways of converting an array of varients, but I don't know specifics, so yes
to your question.
To expand on what Cor said, ADO.NET is so changed and new, well, it's
worth checking out.

HTH
Suefell
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 11/10/2003
Nov 20 '05 #3
* "WayneM" <ww*********@aol.com> scripsit:
I have a vb6 app that uses an array of variants, like a
database table that I would like to convert to vb.net.
Does it make sense to use an array of objects in vb.net?


The framework contains classes to hold database tables.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Wayne,
To continue the ADO.NET theme. David Sceppa's book "Microsoft ADO.NET - Core
Reference" from MS Press contains a wealth of information on ADO.NET it is a
good book to learn how to use ADO.NET while also being a good desk reference
once you are applying ADO.NET.

You should find that using the System.Data.DataTable object to represent
your database table, along with its System.Data.DataRow object to represent
individual rows (your array of variants) is more flexible than an unordained
array of objects. Especially when you start utilizing the DataSet,
DataColumn, Constraint, DataRelation, and DataView classes along with it.

Note that a DataTable is independent of the underlying database. A DataSet
(the container for DataTables) can be read & written to an XML file for
example.

Hope this helps
Jay

"WayneM" <ww*********@aol.com> wrote in message
news:09****************************@phx.gbl...
I have a vb6 app that uses an array of variants, like a
database table that I would like to convert to vb.net.
Does it make sense to use an array of objects in vb.net?

Any other suggestions?

Thanks,

WayneM

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bo Peng | last post by:
Dear list, I am writing a Python extension module that needs a way to expose pieces of a big C array to python. Currently, I am using NumPy like the following: PyObject* res =...
2
by: ip4ram | last post by:
I used to work with C and have a set of libraries which allocate multi-dimensional arrays(2 and 3) with single malloc call. data_type **myarray =...
5
by: Denis Perelyubskiy | last post by:
Hello, I need to make an array of elements accross forms. My javascript skills, as evident from this question, are rather rudimentary. I tried to make an associative array and index it with...
22
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last...
8
by: Vu Pham | last post by:
If I have sometype ar; then does the following command clear the whole array to zero ? memset( ar, 0, A*B*sizeof(sometype) ); Thanks,
4
by: mflll | last post by:
I am looking into the different techniques of handling arrays of edit boxes in Java Script. The first program below works fine. However, are there better ways of doing this, where the person...
2
by: JJA | last post by:
I'm looking at some code I do not understand: var icons = new Array(); icons = new GIcon(); icons.image = "somefilename.png"; I read this as an array of icons is being built. An element of...
10
by: Raj | last post by:
I need a VB function to return array of collections like Private Type Employee empname as string address as string salary as integer deptno as integer End Type dim employees() as Employee
2
by: =?Utf-8?B?U0Q=?= | last post by:
Hi, I'm a complete newbie to .NET and C#. In the project that I'm working on, I have a need to create a C# COM server (and for which I've referred to MSDN samples). This COM server should pass...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.