文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:187.21kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有一个Byte数组A,如果我们知道这个数组上限最大只能是4,就用Dim
Dim A As Byte(4)
但如果我们不能事先确定它的大小,或者需要在运行时改变它的大小就要用动态数组
Dim A As Byte()
ReDim A(4) 这样改变大小时会清空原来的数据
ReDim Preserve A(4) 这样改变大小时会保留原来的数据-There is a Byte array of A, if we know that the array can only be a maximum ceiling of 4, you use Dim Dim A As Byte (4) However, if we do not pre-determine its size, or need to change it at runtime must use the size of the dynamic array Dim A As Byte () ReDim A (4) ' This will change the size of the original data in clear ReDim Preserve A (4)' This change will retain the original size of the data
Dim A As Byte(4)
但如果我们不能事先确定它的大小,或者需要在运行时改变它的大小就要用动态数组
Dim A As Byte()
ReDim A(4) 这样改变大小时会清空原来的数据
ReDim Preserve A(4) 这样改变大小时会保留原来的数据-There is a Byte array of A, if we know that the array can only be a maximum ceiling of 4, you use Dim Dim A As Byte (4) However, if we do not pre-determine its size, or need to change it at runtime must use the size of the dynamic array Dim A As Byte () ReDim A (4) ' This will change the size of the original data in clear ReDim Preserve A (4)' This change will retain the original size of the data
相关搜索: DIM AS BY
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2.pdf
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
