Opened 7 years ago
Last modified 7 years ago
#3593 closed Feature Request
IsFunc() - check if function exist by string — at Initial Version
Reported by: | mLipok | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
IsFunc() should have feautre to check if string is reperesenting FunctionName in function list.
This feature is very much needed to validate user function parameters.
In this following example only third test should fail but second should display message.
_Test(_msg, 1) _Test("_msg", 2) _Test("Fake_msg", 3) Func _Test($sFunction, $iTest) If IsFunc($sFunction) Then $sFunction('Test', $iTest) EndFunc ;==>_Test1 Func _Msg($text, $iTest) MsgBox(0, $iTest, $text) EndFunc ;==>_Msg
Note: See
TracTickets for help on using
tickets.