how to build an N*N matrix, "vb10"?
-
13 เมษายน 2555 21:52
how to build it and how to manipulate it?
can i use the data of an access file table as a matrix directly?
ตอบทั้งหมด
-
13 เมษายน 2555 21:56you mean a 2D array?
thanks for any help
-
14 เมษายน 2555 1:58
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.
- เสนอเป็นคำตอบโดย Mark Liu-lxfModerator 16 เมษายน 2555 9:24
- ทำเครื่องหมายเป็นคำตอบโดย Mark Liu-lxfModerator 24 เมษายน 2555 8:24
-
14 เมษายน 2555 6:08
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
- เสนอเป็นคำตอบโดย Mark Liu-lxfModerator 16 เมษายน 2555 9:26
- ทำเครื่องหมายเป็นคำตอบโดย Mark Liu-lxfModerator 24 เมษายน 2555 8:24
-
14 เมษายน 2555 6:42
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. -
14 เมษายน 2555 10:07
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)
-
14 เมษายน 2555 10:22
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. -
14 เมษายน 2555 21:52Matrix 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.
-
15 เมษายน 2555 13:31You 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.
- แก้ไขโดย JohnWeinMicrosoft Community Contributor 15 เมษายน 2555 13:33