Quote:

Show Me :-)




For example, in my foobar udf library I have:
Code:
If Not IsDeclared($_LIBRARY_FOOBAR)
Global $_LIBRARY_FOOBAR
End If

Function udfFoo()
EndFunction

Function udfBar()
EndFunction



In the initialisation section of my scripts i have:
Code:

If Not IsDeclared($_LIBRARY_FOOBAR) Call "path\to\foobar.udf" EndIf



This ensures that the foobar udf library is only ever called once.