Page 1 of 1 1
Topic Options
#62348 - 2002-01-23 11:04 PM InGroup external Script calling
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
Is there a more efficent way to call KIX files/scripts that have the same group name?

For example, I am currently using the following logic to call external scripts:

If INGROUP ("SF1")
CALL "SF1.KIX"
ENDIF
If INGROUP ("SFACCT")
CALL "SFACCT.KIX"
ENDIF
If INGROUP ("SFXCOM")
CALL "SFXCOM.KIX"
ENDDIF

Is there an easier way? Couldn't I just make an array with that would call a kix script if it matched an NT group name?

One line would be much better than 50.

Top
#62349 - 2002-01-24 09:39 AM Re: InGroup external Script calling
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Incognito,

If you are using Kix 4.x, it is a cinch.

code:

$Myarray = Split("SF1~~SFACCT~~SFACCT", "~~")

For Each $Element In $MyArray
If INGROUP ($Element)
CALL $Element+".KIX"
ENDIF
Next



I am sure there are other ways to go about this...

HTH,

- Kent

[ 24 January 2002: Message edited by: kdyer ]

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


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

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

Generated in 0.052 seconds in which 0.023 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