#150216 - 2005-10-19 07:10 PM
issues with "ERROR : doubly defined UDF"
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
is there a method of working around this issue.
I am INCLUDING a UDF file in some of my scripts, but when I have one app call or run another I am getting the error "ERROR : doubly defined UDF"
I WHY it is happening, but I'm troubled as to how to get around it
|
|
Top
|
|
|
|
#150218 - 2005-10-19 07:16 PM
Re: issues with "ERROR : doubly defined UDF"
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#150220 - 2005-10-19 08:33 PM
Re: issues with "ERROR : doubly defined UDF"
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
Thanks Lonk, never thought of that....
|
|
Top
|
|
|
|
#150223 - 2005-10-20 02:55 AM
Re: issues with "ERROR : doubly defined UDF"
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
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.
|
|
Top
|
|
|
|
#150224 - 2005-10-20 03:57 AM
Re: issues with "ERROR : doubly defined UDF"
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Richard, I like your approach and will probably be using it in my next interation of my logon script.
|
|
Top
|
|
|
|
#150225 - 2005-10-20 05:29 AM
Re: issues with "ERROR : doubly defined UDF"
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 778 anonymous users online.
|
|
|