我需要基于变量 Y 创建一个特定的数组(我在一个系列中使用)。这是我正在使用的格式 - 尝试在 VBScript 中进行。
If Y=2 then
S1 = [0,x]
S2 = [x,0]
If Y=3 then
S1 = [0,0,x]
S2 = [0,x,0]
S3 = [x,0,0]
If Y=4 then
S1 = [0,0,0,x]<br/>
S2 = [0,0,x,0]<br/>
S3 = [0,x,0,0]<br/>
S4 = [x,0,0,0]<br/>
If Y=5 then
S1 = [0,0,0,0,x]
S2 = [0,0,0,x,0]
S3 = [0,0,x,0,0]
S4 = [0,x,0,0,0]
S5 = [x,0,0,0,0]
等等等等。我知道这将是一个 for 循环 -------------
for i = 1 to Y
S[i] = "[.... this is where am drawing a brain freeze
next