淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Script Guide >
   VBScript Variables >
       Array Variables           


Array Variables

Create an array variable when you want to assign more than one related value to a single variable. An array variable contains a series of values. For example:

Dim Primitives(2)

 

All arrays in VBScript are zero-based, so the array above actually contains 3 elements. You assign data to each of the array’s elements using an index into the array. Data can be assigned to the elements of an array as follows:

Primitives(0) = “Box1”

Primitives(1) = “Poly1”

Primitives(2) = “Circle1”

 

Similarly, the data can be retrieved from any element using an index into a particular array element. For example:

one_prim = Primitives(1)

 

You can also use the Array function to assign an array of elements to a variable. For example:

Dim Primitives

Primitives = Array (“Box1”, “Poly1”, “Circle1”)

 

 

Note 

When using the Array function, do not use parentheses on the variable when it is declared. For example, use Dim myarray, not Dim myarray().

 




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com