#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
|
2023-09-28 [Arend_]
Wow even the shouts are old ;-)
2023-11-17 [Dr_Rick]
I love Kixforms!
2023-11-21 [Dave_Melczer]
Getting DB errors again opening posts...anyone else?
2023-11-24 [Flavien]
DB errors confirmed. This forum is showing its age... UBB 7.2.2 is from 2007
2023-11-27 [Sealeopard]
And there goes the forum :-(
2023-11-30 [NTDOC]
Yes, so old no good easy update path
2023-12-01 [mole]
Posts back. No DB errors. Thanks!
2023-12-29 [BradV]
Happy new year!
2024-02-09 [RSLHA]
No access possible!
2024-02-09 [RSLHA]
Database Error!
2024-02-18 [Dr_Rick]
What happened to Bruno
2024-03-08 [mole]
Thanks for getting the posts back again.
2024-04-18 [MarineV]
will the db errors get fixed????
2024-04-26 [Tonny]
database error, please!
2024-05-09 [NTDOC]
I'm not seeing any errors
2024-05-31 [chojin]
DB is down again
2024-06-04 [selsner]
Still no access, please help!
2024-06-07 [mole]
Looks like DB is back again. Thanks.
2024-06-17 [It_took_my_meds]
We encountered a problem. The reason reported was Database error only visible to forum administrators Please click back to return to the previous page.
2024-07-04 [Armin73]
There is still a database error 🤷♂️
2024-07-09 [0neZero]
There is still a database error 🤷♂️
2024-07-10 [Allen]
DB working a few times in between the messages above. Working again as of 7/10. Thanks Doc
2024-08-31 [NetGnostic]
Bummer, the Database error is back.
2024-09-04 [NTDOC]
Fourms are back up without error for the moment
2024-10-02 [Arend_]
Wll still have database errors ;-)
2024-10-03 [Allen]
Thanks to Doc... it's back.
2024-12-09 [chojin]
could we move kixtart to a new place in order to keep it living ? maybe create a github page and a subreddit?
2024-12-10 [Allen]
do know about moving it, but I know Doc is aware of the DB issue. Should be back online soon.
2024-12-10 [Allen]
don't know...
|
|
0 registered
and 303 anonymous users online.
|
|
|