Check if UDF is defined
Keywords: UDF is defined isdefined
Question:
Is there a way to check if a UDF has been defined?Answer:
See the command IntControl 77.Addextender("wwctl34i.dll") #DefineFunction functname(param1, param2, param3, param4,…param16) ; Return retval #EndFunction list = IntControl(77, 103, 0, 0, 0) ;AskItemlist("tab-delimited list of UDFs",list ,@tab, @unsorted, @single) ret = StrIndexNc (list, "functname", 0, @FWDSCAN) if ret == 0 then Message("functname", "is NOT defined") Message("","Complete") exit
Article ID: W14988