wyx5 发表于 2009-2-9 14:00:23

FUNC 的问题

FUNC 的问题
请问在FUNC......ENDFUNC中还能在使用FUNC......ENDFUNC吗?
例如:

While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $Button1c
         A()
EndSelect
Wend
FUNCA().
...定义程序...
FUNCB()
....定义程序...
ENDFUNC.
...定义程序...
ENDFUNC

bob 发表于 2009-2-9 14:09:25

看帮助文档
Note that function declarations cannot appear inside other function declarations.
注意,函数内部不能出现其它函数声明

不过没测试过,建议用
FUNCA().
...定义程序...
ENDFUNC

FUNCB()
....定义程序...
ENDFUNC.
页: [1]
查看完整版本: FUNC 的问题