变量x(i)=val(text(i+2).text)无定义
Dim i, j, n As IntegerDim E#(21, 21), G#(21, 21), AB#(21, 21), B#, T!, x!(21)
B = 0
For i = 1 To 21
For j = 1 To 21
For n = 1 To 18
E(i, j) = L(i, j) * (AE(i) * AE(j)) ^ (1 / 2) '二元参数Eij
G(i, j) = Y(i, j) * (AG(i) + AG(j)) / 2 '二元参数Gij
AB(i, j) = ((G(i, j) + 1 - Arrg(n)) ^ (Arrg(n))) * ((AQ(i) * AQ(j) + 1 - Arrq(n)) ^ ((Arrq(n))) * (AF(i) ^ (1 / 2) * AF(j) ^ (1 / 2) + 1 - Arrf(n)) ^ (Arrf(n))) * ((ArS(i) * ArS(j) + 1 - Arrs(n)) ^ (Arrs(n))) * ((AW(i) * AW(j) + 1 - Arrw(n)) ^ (Arrw(n))) '混合交互作用系数
T = Val(Text1.Text)
x(i) = Val(Text(i + 2).Text)
x(j) = Val(Text(j + 2).Text)
B = Arra(n) * T ^ (-Arru(n)) * x(i) * x(j) * AB(i, j) * E(i, j) * (AK(i) * AK(j)) ^ (3 / 2) + B
Next n
Next j
Next i