WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

UDF - UDS Library
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:11:08:12:41:18
Last Updated: 2001:11:08:12:41:18