在Access 2003中保存矩阵 [英] Saving matrix in access 2003

查看:164
本文介绍了在Access 2003中保存矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我有这个尺寸为[15,15]的2D数组,我希望将其存储到MS Access 2003中,以便在将来使用的矩阵上进行进一步处理。 />
因为Access中没有内置数据类型作为''array''或''matrix''或''2D array''....任何人都可以帮助!!!

提前感谢大家...

等待快速响应....

解决方案


hi ..

我有这个尺寸为[15,15]的2D数组,我想存储到MS Access 2003中以进一步处理矩阵n future使用。

由于Access中没有内置数据类型作为''array''或''matrix''或''2D array''....任何人都可以帮助!!! br />
提前感谢大家...

等待快速回复....



你可以使用二维数组中包含的数据轻松填充表以便''Pers ist''数据。那么使用GetRows()方法将是一个相对简单的事情,它将根据Table从Recordset返回一个二维数组。这将是您的检索方法。顺便说一句,数组元素的数据类型是什么?它代表什么? a(15,15)当前会持有256个成员,因为数组的索引为0,这是你的意图吗?



你可以很容易地填充包含二维数组中的数据的表,以便保持数据。那么使用GetRows()方法将是一个相对简单的事情,它将根据Table从Recordset返回一个二维数组。这将是您的检索方法。顺便说一句,数组元素的数据类型是什么?它代表什么? a(15,15)当前将拥有256个成员,因为数组的索引为0,这是你的意图吗?



我没有得到你的答复...是的,你的仪式我有一个由字节值组成的15 x 15二维数组...即256字节值。

在visual studio 2005上查看我的这个数组,用C#对图像进行编程。到目前为止我所做的是提取15x15窗口的像素值。现在我要做的下一件事是将该数组存储在MS Access中,以便我可以处理它们并在其上应用其他功能。


所以我的主要问题是存储矩阵进入MS Access,我已经建立了连接......所以你能详细说明我如何存储价值......从头开始。这将是非常有帮助....并存储后如何访问数组元素....

感谢你...


< blockquote class =post_quotes>
我没有得到你的答复...是的,你的仪式我有一个由字节值组成的15 x 15二维数组...即256字节值。 />
看看我在visual studio 2005上有这个数组,用C#对我的图像进行编程。到目前为止我所做的是提取15x15窗口的像素值。现在我要做的下一件事是将该数组存储在MS Access中,以便我可以处理它们并在其上应用其他功能。


所以我的主要问题是存储矩阵进入MS Access,我已经建立了连接......所以你能详细说明我如何存储价值......从头开始。这将是非常有帮助....并存储后如何访问数组元素....

感谢你...



我会看到我能想到的,但请耐心等待,因为我现在很忙。


hi..
i''ve this 2D array of size a[15,15] which i want to store into MS Access 2003 for further processing on the matrix n future use.
Since there is no built in data type in Access as ''array'' or ''matrix'' or ''2D array''....can anyone help!!!
Thanking you all in advance...
waiting for a fast response....

解决方案

hi..
i''ve this 2D array of size a[15,15] which i want to store into MS Access 2003 for further processing on the matrix n future use.
Since there is no built in data type in Access as ''array'' or ''matrix'' or ''2D array''....can anyone help!!!
Thanking you all in advance...
waiting for a fast response....

You could easily populate a Table with the data contained in the 2 Dimensional Array in order to ''Persist'' the data. It would then be a relatively simple matter to use the GetRows() Method which will return a 2 Dimensional Array from a Recordset based on the Table. This would be your retrieval Method. BTW, what is the Data Type of the Array Elements and what does it represent? a(15, 15) would current hold 256 members since Arrays are indexed at 0, is this your intention?


You could easily populate a Table with the data contained in the 2 Dimensional Array in order to ''Persist'' the data. It would then be a relatively simple matter to use the GetRows() Method which will return a 2 Dimensional Array from a Recordset based on the Table. This would be your retrieval Method. BTW, what is the Data Type of the Array Elements and what does it represent? a(15, 15) would current hold 256 members since Arrays are indexed at 0, is this your intention?

I didn''t get ur reply...yes, ur rite i''ve a 15 x 15 2D array consisting of byte values...i.e 256 byte values.
See i''ve this array on visual studio 2005, doing my pogramming on images in C#,. What i''ve done till now is to extract the pixel values of a 15x15 window. Now the next thing i want to do is to store that array in MS Access so that i can work on them and apply other functions on them.

So my main problem is to store the matrix into MS Access, I''ve esablished the connection...so can u elaborate how an i store the values...rite from scratch. It will be very helpful of you....and after storing how do i access the array elements ....
Thanking you...


I didn''t get ur reply...yes, ur rite i''ve a 15 x 15 2D array consisting of byte values...i.e 256 byte values.
See i''ve this array on visual studio 2005, doing my pogramming on images in C#,. What i''ve done till now is to extract the pixel values of a 15x15 window. Now the next thing i want to do is to store that array in MS Access so that i can work on them and apply other functions on them.

So my main problem is to store the matrix into MS Access, I''ve esablished the connection...so can u elaborate how an i store the values...rite from scratch. It will be very helpful of you....and after storing how do i access the array elements ....
Thanking you...

I''ll see what I can come up with, but please be patient since I am very busy at the moment.


这篇关于在Access 2003中保存矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆