Page 1 of 1 1
Topic Options
#81466 - 2003-01-21 04:18 PM Include FunctionLibrary.kix
Wylie Offline
Lurker

Registered: 2003-01-21
Posts: 2
Loc: Sydney, Australia
Ive just discovered Kix, Its great, but one thing is missing, and Im sure its been thought of before... but... just in case...

With all the UDF's out there, it would be very convienient to build a function library which could be included from multiple kix scripts, alas I cant find an "Include" command in Kix 4.12 (havnt looked at the beta yet). In my mind, this is a "must have".

Having multiple kix scripts, each with their own copy of the same essential UDF's is a pain to maintain, it would be much nicer to have these in one file and just include that into whichever script needed it.

Ok, so having said im new, I'll also add that im no stranger to scripting and have picked up kix as if I'd been using it for years. In 2 days I have a form based logon script that does just about everythng almost finished... another day or so and it will be in production. I dont know whether this is because Im familiar with scripting, or if its because Kix is fantastic, and well supported (Im assuming its the latter)

Top
#81467 - 2003-01-21 04:20 PM Re: Include FunctionLibrary.kix
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
It's called CALL.

See How to use UDFs in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#81468 - 2003-01-21 04:20 PM Re: Include FunctionLibrary.kix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I think you overlooked the CALL command.

Darn, Jens slipped in front of me...

[ 21. January 2003, 16:26: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#81469 - 2003-01-21 04:20 PM Re: Include FunctionLibrary.kix
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The library you desire is one or more KiXtart script with nothing but UDFs in it. Use CALL "library.kix" to load it into your main script.

{darn} Les is now faster than me. I must be getting old.

[ 21. January 2003, 16:21: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#81470 - 2003-01-21 04:24 PM Re: Include FunctionLibrary.kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
and not just les...

darn quick you are all.
_________________________
!

download KiXnet

Top
#81471 - 2003-01-21 04:28 PM Re: Include FunctionLibrary.kix
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
Lonkero: You're late! What's up with that? [Big Grin]
_________________________
There are two types of vessels, submarines and targets.

Top
#81472 - 2003-01-21 04:38 PM Re: Include FunctionLibrary.kix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In light of the fact this already exists, this topic is now closed.

Closed it too quick. Here is the originator's response emailed to me:

quote:
You closed the topic before I had a chance to reply.. and in only 20 minutes -
you guys are quick.

Well, since I cant follow up there, I'll follow up here.

Thanks for the pointer.

With the exception of the link to the forum faq, none of the documentation I
could find mentioned this, not even the official stuff. The Call function looked
just like any other call function, most of which call a script which is supposed
to be a standalone script in its own right, and "execute" it in a seperate
memory space, so my new suggestion would be to mention this in the
documentation.

Thanks again.



[ 21. January 2003, 16:57: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#81473 - 2003-01-21 05:04 PM Re: Include FunctionLibrary.kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
as this is open again...

this has been also suggested before even thought it has been there more than long:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=4;t=000265
http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=4;t=000016

as examples.

[ 21. January 2003, 17:06: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#81474 - 2003-01-21 05:08 PM Re: Include FunctionLibrary.kix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
As a clarification...
The CALL command does not instantiate KiX in another memory space but rather deals serialy with the 'included' script.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#81475 - 2003-01-21 05:08 PM Re: Include FunctionLibrary.kix
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
ok, the new suggestion is not bad.

the manual could indeed state more about this.
_________________________
!

download KiXnet

Top
#81476 - 2003-01-21 05:11 PM Re: Include FunctionLibrary.kix
Wylie Offline
Lurker

Registered: 2003-01-21
Posts: 2
Loc: Sydney, Australia
Thanks guys, and thanks for the speed at which you all replied. I feel kind of dumb now, but yes, reading the docs (and a past knowledge of non-kix scripting) led me to believe that CALL would run a script in a seperate memory space.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 318 anonymous users online.
Newest Members
Kelly001, MichaelK72, Janneman, standardbruker, maikoenig2001
17773 Registered Users

Generated in 0.035 seconds in which 0.012 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