创建一个数组 [英] Creating an array

查看:67
本文介绍了创建一个数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个包含两列的数组,第1列中的值是datetime,而在

第2列中它们是数字,最多有两位小数。


创造这个的暗淡声明是什么?


非常感谢任何帮助。


Bob

I need an array with two columns, values in column 1 are datetime and in
column 2 they are numeric with up to two decimal places.

What''s the Dim statement to create this?

Any help is greatly appreciated.

Bob

推荐答案

如果要保留2种数据类型,请使用ArrayList对象或

Collection对象,而不是简单的单一类型数组。

" Robert Dufour" < bd ***** @ sgiims.com写信息

news:ev ************** @ TK2MSFTNGP05.phx.gbl ...
If you want to have the 2 data types preserved use an ArrayList object or a
Collection object, rather than a simple single-type array.
"Robert Dufour" <bd*****@sgiims.comwrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...

>我需要一个包含两列的数组,第1列中的值是datetime,而在第2列中它们是数字,最多包含两位小数。 />

创建这个的Dim声明是什么?


非常感谢任何帮助。


Bob

>I need an array with two columns, values in column 1 are datetime and in
column 2 they are numeric with up to two decimal places.

What''s the Dim statement to create this?

Any help is greatly appreciated.

Bob



" Robert Dufour" < bd ***** @sgiims.comschrieb
"Robert Dufour" <bd*****@sgiims.comschrieb

我需要一个包含两列的数组,第1列中的值是datetime

在第2列中,它们是数字,最多包含两位小数。


创建此内容的Dim语句是什么?


任意非常感谢帮助。
I need an array with two columns, values in column 1 are datetime
and in column 2 they are numeric with up to two decimal places.

What''s the Dim statement to create this?

Any help is greatly appreciated.



结构项目

公共v1作为日期

公共v2为十进制

结束结构


''...

暗物品(17)作为物品


items(0) .v1 = date.now

items(0).v2 = 17.34


with items(1)

.v1 = date.now

.v2 = 17.34

结束

Armin

structure Item
public v1 as date
public v2 as decimal
end structure

''...
dim items(17) as item

items(0).v1 = date.now
items(0).v2 = 17.34

with items(1)
.v1 = date.now
.v2 = 17.34
end with
Armin


谢谢

Bob

" Armin Zingler" < az ******* @ freenet.dewrote in message

news:uG ************** @ TK2MSFTNGP04.phx.gbl ...
Thanks
Bob
"Armin Zingler" <az*******@freenet.dewrote in message
news:uG**************@TK2MSFTNGP04.phx.gbl...

" Robert Dufour" < bd ***** @sgiims.comschrieb
"Robert Dufour" <bd*****@sgiims.comschrieb

>我需要一个包含两列的数组,第1列中的值是日期时间
第2列它们是数字的,最多有两个小数位。

创建它的Dim语句是什么?

非常感谢任何帮助。
>I need an array with two columns, values in column 1 are datetime
and in column 2 they are numeric with up to two decimal places.

What''s the Dim statement to create this?

Any help is greatly appreciated.



结构项目

公共v1作为日期

公共v2为十进制

结束结构


''...


dim items(17)as item


items(0).v1 = date.now

items(0).v2 = 17.34


with items(1)

.v1 = date.now

.v2 = 17.34

结束


Armin


structure Item
public v1 as date
public v2 as decimal
end structure

''...
dim items(17) as item

items(0).v1 = date.now
items(0).v2 = 17.34

with items(1)
.v1 = date.now
.v2 = 17.34
end with
Armin



这篇关于创建一个数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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