打个比方: dim a as integer=0 dim b as integer=0 a=getarandomnum(1..5) if a=1 then if messagebox("a=1,还继续吗?","yes/no"....)=yes then '可选y/n的那种对话框,这只是示例. b=getArandomNum(1..3) if b=1 then if messagebox("b=1,还继续吗?","yes/no".....)=yes then c=getArandomNum(1..2) ...... end if 'if n=1 ...... end if 'if b=1 end if 'if a=1 在这个例子中,对话框很随机的出现,并与用户进行交互,程序本身没有任何义意. 如果要把程序分半,像这样的算法在实现起来很颇烦的. 别外,window.showmodaldialog好像是在winfrom中使用的吧?在webform中能用吗?
只有想不到,没有作不到!
dim a as integer=0
dim b as integer=0
a=getarandomnum(1..5)
if a=1 then
if messagebox("a=1,还继续吗?","yes/no"....)=yes then
'可选y/n的那种对话框,这只是示例.
b=getArandomNum(1..3)
if b=1 then
if messagebox("b=1,还继续吗?","yes/no".....)=yes then
c=getArandomNum(1..2)
......
end if 'if n=1
......
end if 'if b=1
end if 'if a=1
在这个例子中,对话框很随机的出现,并与用户进行交互,程序本身没有任何义意.
如果要把程序分半,像这样的算法在实现起来很颇烦的.
别外,window.showmodaldialog好像是在winfrom中使用的吧?在webform中能用吗?