#148852 - 2005-09-30 12:57 AM
Re: Tokenize data file
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Well then, I would have to offer this simple solution (like lonk says), create a response file containing simple $variables, and INCLUDE it into your script ... might look like:
Code:
[responses.kix] $Welcome = 0 $EULA = 1 $Company = "Acme Corp" $Name = "John Joe"
etc, etc add nausium ...
A more advanced strategy might be to use XML embedded inside a function (kinda the way we do for Kixforms bitmap resources) ...
Code:
[responses.kix]
Function Responses()
$Responses = " <xml> <answer1>yes</answer1> <answer2>no</answer2> <answer3>yes</answer3> </xml> "
EndFunction
So then in your main, you include the reponse file, then call the function to return the XML string, then use the XML COM object to parse the answers ... like I said - kinda sophisticated and maybe over-the-top (idk)
-Shawn
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2419 anonymous users online.
|
|
|