- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
College of Information Technology Information (信息技术学院信息)
College of Information Technology
Information network department
Programming with Visual Basic II
====================================================
Arrays in Visual Basic 6
An array is a collection of simple variables of the same type to which the computer can
efficiently assign a list of values. Array variables have the same kinds of names as simple
variables. An array is a consecutive group of memory locations that all have the same
name and the same type. To refer to a particular location or element in the array, we
specify the array name and the array element position number. The Individual elements of
an array are identified using an index. Arrays have upper and lower bounds and the
elements have to lie within those bounds. Each index number in an array is allocated
individual memory space and therefore users must evade declaring arrays of larger size
than required. We can declare an array of any of the basic data types including variant,
user-defined types and object variables. The individual elements of an array are all of the
same data type.
Declaring arrays: Arrays may be declared as Public (in a code module), module or
local. Module arrays are declared in the general declarations using keyword Dim or
Private. Local arrays are declared in a procedure using Dim. Array must be declared
explicitly with keyword As. There are two types of arrays in Visual Basic namely:
Fixed-Size Array: The size of array always remains the same-size doesnt change
during the program execution. When an upper bound is specified in the declaration, a
Fixed-array is created. The upper limit should always be within the range of long data
您可能关注的文档
- Characterization of the Feedstock Properties of (原料性能的表征).pdf
- Chart of the Week(本周的图表).pdf
- Charmilles Edm Manual bigdmustangs(Charmilles Edm手册bigdmustangs).pdf
- CHARTER CHECK LIST University of California, (宪章检查表加州大学).pdf
- CHARACTERIZATION OF THE THERMOSONIC (描述的超声波热).pdf
- Charging the Unit HMDX audio(收费单位 HMDX音频).pdf
- Chassis Construction Gauge 0 Guild(底盘结构计0公会).pdf
- Charlottetown Gov(夏洛特敦政府).pdf
- Checklist 090 Training Needs Analysis (清单090年培训需求分析).pdf
- CHECKLIST FOR ABOVEGROUND Return (清单为地上返回).pdf
文档评论(0)