|
各位高手,现在我写一个程序,其中要解决的一个问题就是:A对应A1,B对应B1,现在要按这个顺序显示出来,如何做呢?我用
Dim $numa[12]
$numa[1]="a1"
$numa[2]="a2"
$numa[3]="a3"
$numa[4]="a4"
$numa[5]="a5"
$numa[6]="a6"
$numa[7]="a7"
$numa[8]="a8"
$numa[9]="a9"
$numa[10]="a10"
$numa[11]="a11"
$numa[12]="a12"
Dim $txt1=$numa[Random(1,12)]
Dim $numb[56]
$numb[1]="A1"
$numb[2]="A2"
$numb[3]="A3"
$numb[4]="A4"
$numb[5]="A5"
$numb[6]="A6"
$numb[7]="A7"
$numb[8]="A8"
$numb[9]="A9"
$numb[10]="A10"
$numb[11]="A11"
$numb[12]="A12
Dim $txt2=$numb[Random(1,12)]
MsgBox(0,"随机数测试",$txt1&$txt2)
这样写出来的还是随机的txt1和txt2,后来又用IniRead和IniReadSection,都不能实现,请问一下,各位如何在msgbox中,如果是txt1时,就显示txt2!不胜感激! |
|