找回密码
 加入
搜索
查看: 1469|回复: 1

FUNC 的问题

[复制链接]
发表于 2009-2-9 14:00:23 | 显示全部楼层 |阅读模式
FUNC 的问题
请问在FUNC......ENDFUNC中还能在使用FUNC......ENDFUNC吗?
例如:

While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $Button1c
           A()
EndSelect
Wend
FUNC  A().
...定义程序...
FUNC  B()
....定义程序...
ENDFUNC.
...定义程序...
ENDFUNC
发表于 2009-2-9 14:09:25 | 显示全部楼层
看帮助文档
Note that function declarations cannot appear inside other function declarations.
注意,函数内部不能出现其它函数声明

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

FUNC  B()
....定义程序...
ENDFUNC.
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 03:28 , Processed in 0.080620 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表