Page 1 of 1 1
Topic Options
#15848 - 2002-01-08 04:37 PM How to use a UDF
Mark Bennett Offline
Getting the hang of it

Registered: 2001-10-10
Posts: 70
How do I use a UDF? Should I incorporate it at the start of my script?
Top
#15849 - 2002-01-08 04:53 PM Re: How to use a UDF
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
some people like to make all the UDFs in a seperate file and call it in the beginning of a script.

Some like to add the UDFs to the end of current script.

either way works, it is up to you decide.

(but I prefer the end of the script... You only add the UDFs you need and you can make slight mods to them for your current needs without breaking it for another script)

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#15850 - 2002-01-08 05:00 PM Re: How to use a UDF
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
yap - i prefer end of the script too.
Top
#15851 - 2002-01-08 05:08 PM Re: How to use a UDF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I vote to keep it separate and call it. There are cases where you may have more than one script that could use the UDF, so keep them all in one 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
#15852 - 2002-01-08 06:47 PM Re: How to use a UDF
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
I prefer them anywhere they work!
_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

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
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.026 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