![]() ![]() ![]() ![]() ![]() |
|
微波射频仿真设计 |
|
首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档 |
Script Guide > Array VariablesCreate 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”)
HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |