how to build an N*N matrix, "vb10"?
-
Friday, April 13, 2012 9:52 PM
how to build it and how to manipulate it?
can i use the data of an access file table as a matrix directly?
All Replies
-
Friday, April 13, 2012 9:56 PMyou mean a 2D array?
thanks for any help
-
Saturday, April 14, 2012 1:58 AM
Matrix of what? Integers would be declared as
Dim M(N, N) As Integer
Please see:
http://msdn.microsoft.com/en-us/library/wak0wfyt.aspx
http://www.dotnetperls.com/2d-array-vbnetIf your data is stored in an Access table then you will need to retrieve it from the database in order to use it. You can't store a matrix direct to Access, so you will need a procedure to populate the matrix from the data source. How you do that depends on how the data is stored.
- Proposed As Answer by Mark Liu-lxfModerator Monday, April 16, 2012 9:24 AM
- Marked As Answer by Mark Liu-lxfModerator Tuesday, April 24, 2012 8:24 AM
-
Saturday, April 14, 2012 6:08 AM
If you want to access Access mdb or accdb file content, and get data from the tables in it and then store the data back to the database. First, you need do deal with ADO.Net. Please take a look at the MSDN web page at:
http://msdn.microsoft.com/en-us/library/e80y5yhx(v=VS.100).aspx
http://msdn.microsoft.com/en-us/library/h43ks021.aspx
And then for the Matrix operation part, you need to find out some tutorials or articles about Matrix operations. You can find thos materials on some data structure textbooks or you can google for the 'data structure for the Matrix'.
My blog: http://soho-hsh.blogspot.com
- Proposed As Answer by Mark Liu-lxfModerator Monday, April 16, 2012 9:26 AM
- Marked As Answer by Mark Liu-lxfModerator Tuesday, April 24, 2012 8:24 AM
-
Saturday, April 14, 2012 6:42 AM
If you need to do serious matrix stuff then I suggest looking for a matrix library. You can google for more. Here's a link to one (in C# but that is what most seem to use) that might be helpful.
Regards David R
---------------------------------------------------------------
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute. -
Saturday, April 14, 2012 10:07 AM
The title of the question is "vb10", i'm a beginner in vb and i can't work with c#(in C# but that is what most seem to use)
-
Saturday, April 14, 2012 10:22 AM
According to some people VB and C# are not that different really; others disagree.
However, you could find a converter by using google if you want to translate from one to the other. There seems to be plenty around but I have no idea how good they are.
Regards David R
---------------------------------------------------------------
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute. -
Saturday, April 14, 2012 9:52 PMMatrix manipulation is relatively easy to construct, but in any case you haven't indicted what sort of manipulations you need. A library might be overkill, but if you do want to use one there is no need to know or care about the language it is written in. You should concetrate on constructing the matrix from the database, so that you have something available to manipulate.
-
Sunday, April 15, 2012 1:31 PMYou ask in yoor new thread if there is a VB library like System.Numerics. System.Numerics is written in C#, but as you've seen you can easily use it from VB. The same with any C# matrix library. If you can reference and use it from VB, you shouldn't care what language the original coder used to write it.
- Edited by JohnWeinMicrosoft Community Contributor Sunday, April 15, 2012 1:33 PM

