Page 1 of 1 1
Topic Options
#153184 - 2005-12-09 04:33 AM Doubly Defined
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I just upgraded to 4.51, and I get this error in a script that used to work just fine.
Quote:


ERROR : doubly defined UDF [RadioButton1BackGroundImage1]!
Script: D:\scripts\IconChoice2.kix





Not sure where to start looking
_________________________
Today is the tomorrow you worried about yesterday.

Top
#153185 - 2005-12-09 04:41 AM Re: Doubly Defined
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
How about the liner notes?
Quote:


4) Fixed handling of multiple INCLUDE's of the same INCLUDE file.



_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153186 - 2005-12-09 04:52 AM Re: Doubly Defined
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Eh, what... no comment?
It was just meant to get you to read the kix2010.txt that ships with KiX. The real line you are looking for is #14.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153187 - 2005-12-09 04:57 AM Re: Doubly Defined
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
My download does not include a kix2010.txt.
Yes I downloaded it from here.
I am not using any includes, however this error is caused when I close a kixforms script, and then later reopen that same script.

Do I need to somehow clear out all of the prior variables?
_________________________
Today is the tomorrow you worried about yesterday.

Top
#153188 - 2005-12-09 04:59 AM Re: Doubly Defined
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Line #4 was just a teaser.:p

14) Changed the way duplicate User Defined Functions are handled. In previous
versions, duplicate UDF's were ignored. As of this version, KiXtart reports
an error informing you of the duplicate UDF.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153189 - 2005-12-09 05:01 AM Re: Doubly Defined
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
http://www.kixtart.org/releasenotes.html
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153190 - 2005-12-09 09:34 AM Re: Doubly Defined
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Quote:

My download does not include a kix2010.txt.
Yes I downloaded it from here.






you are a LIAR!
_________________________
!

download KiXnet

Top
#153191 - 2005-12-09 01:12 PM Re: Doubly Defined
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Quote:


you are a LIAR!




Such strong words...

You are semi correct..

I assumed (yes I know), that it would be in the same directory as the rest not where I ran the zip file from.

So I did not find it where all the rest of the Kix files were but a completly different drive and location.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#153192 - 2005-12-09 02:10 PM Re: Doubly Defined
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, I admit it's a strong wording and that I was about to remove it when I posted.

anyways, there is not a single release downloadable from kixtart.org without documentation and as caretaker of the downloads section I take it personally when someone says there is.

anyway, I hoped and still hope that you can take my comments.
_________________________
!

download KiXnet

Top
#153193 - 2005-12-09 02:37 PM Re: Doubly Defined
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Comments no problem, as long as you don't hunt me down and beat me over the head for not looking at where files were placed before I extracted them.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#153194 - 2005-12-09 02:39 PM Re: Doubly Defined
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
As to my original question, I found a way around it, by removing the UDF in the script that is called multiple times and placing them in a seperate file that is then included, I have no problems.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#153195 - 2005-12-09 02:43 PM Re: Doubly Defined
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
main script 1:
Break on
If Not IsDeclared($_UDF_LIB) Call @scriptdir+'\UDFs.kix' EndIf
...

Main script 2:
Break on
If Not IsDeclared($_UDF_LIB) Call @scriptdir+'\UDFs.kix' EndIf
...

UDF Script:
If Not IsDeclared($_UDF_LIB)
Global $_UDF_LIB
EndIf
...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.068 seconds in which 0.031 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org