FuncName
返回存储在一个变量中的函数的名称
FuncName ( $Functionvariable )
参数
$Functionvariable
|
要检索其函数名称的变量.
|
返回值
成功:
|
返回函数名称的字符串.
|
失败:
|
返回 "" (空字符串), 设置 @error 为 1.
|
相关
IsFunc
函数示例
#include <MsgBoxConstants.au3>
Example()
Func Example()
; Create a first class object of MsgBox and assign to a Local variable.
Local $hMsgBox = MsgBox
; Display a MsgBox using the previously assigned variable.
$hMsgBox($MB_SYSTEMMODAL, "", "This is a sentence with whitespace.")
; Display a MsgBox that shows the function name $hMsgBox.
$hMsgBox($MB_SYSTEMMODAL, "", "The function name of $hMsgBox is: " & FuncName($hMsgBox))
EndFunc ;==>Example
----------------------------------------
|