#180681 - 2007-09-18 05:55 PM
Re: Problem with Include when using call other Kix Scripts.
[Re: MarcInCa]
|
MarcInCa
Fresh Scripter
Registered: 2007-06-05
Posts: 22
Loc: Montreal, Canada
|
Here is more informations:
Main.kix: CALL "Script1.kix" CALL "Script2.kix"
Script1.kix: INCLUDE "Include\InstallSoft.kix" InstallSoft("d:\Software\Program1\setup.exe")
Script2.kix: INCLUDE "Include\InstallSoft.kix" InstallSoft("d:\Software\Program2\toto.exe")
_________________________
Treat people the way you want to be treated.
|
Top
|
|
|
|
#180687 - 2007-09-18 06:59 PM
Re: Problem with Include when using call other Kix Scripts.
[Re: Witto]
|
MarcInCa
Fresh Scripter
Registered: 2007-06-05
Posts: 22
Loc: Montreal, Canada
|
Yup ! I know i could do that. But then the concept of my self-contained smaller scripts would go down the tube and would need to rewrite them. The Script1 and Script2 already being used as is for other tasks as is and work great. I was hoping I could re-used their functionality "as is" within a great kixtart script without having to rewrite these "sub-scripts".
I presumed the scope of the INCLUDE statement were limited to within the script (Script1 and Script2) they are being called and not used "Globally" for the whole session (Main).
I was wondering if there was a way to use "If NOT Define C like statement", so we could test to see if the Include was already laoded or not. If it was not loaded, then the "include" would be loaded.
Thanks for the help, It is appreciated. Any one had similar problems like mine and have found a solution or work around ?
Edited by MarcInCa (2007-09-18 07:04 PM)
_________________________
Treat people the way you want to be treated.
|
Top
|
|
|
|
#180706 - 2007-09-18 10:29 PM
Re: Problem with Include when using call other Kix Scripts.
[Re: Lonkero]
|
MarcInCa
Fresh Scripter
Registered: 2007-06-05
Posts: 22
Loc: Montreal, Canada
|
Yup ! I meant about the ability to decide if the inclusion should take place or not.
_________________________
Treat people the way you want to be treated.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 369 anonymous users online.
|
|
|