Hi Dick, This might do what you need (beware the long line!): ^!SetListDelimiter | ^!SetArray %temp%=1|3|5 ^!Set %count%=0; %list%=1|2|3|4|5 ... ^!Inc %count%Message 1 of 5 , Mar 5, 2002View SourceHi Dick,
This might do what you need (beware the long line!):
^!Set %count%=0; %list%=1|2|3|4|5
^!IfDiff ^%count% ^%temp0% Loop
> -----Original Message-----
> From: Dick Gascoigne [mailto:dick.gascoigne@...]
> Sent: 05 March 2002 14:47
> To: email@example.com
> Subject: [Clip] Saving defaults in a valuelist
> I have a curly wizard with checkboxes. Of course the checkboxes
> are formed
> from a ListValues parameter, which is actually an Array Variable.
> Then I put
> the items which were checked in another Array variable and save it an .ini
> file. So far, no problem.
> The next time the clip is run, I want to use those previously checked and
> saved values as defaults in the ListValues variable for the wizard. That
> way, the boxes will be "pre-checked" just as they had been
> checked the last
> time. Note: the original ListValues has be the same items each
> time, just
> with some set as defaults.
> But I don't see an easy way to take my standard ListValues array variable,
> and put an underscore in front of the items which appear in the
> saved array
> The standard ListValues array variable contains 1|2|3|4|5 -- so
> the wizard
> will show 5 checkboxes.
> If the user checks 1, 3 and 5, then the Set variable will contain 1|3|5.
> That gets put into another SetArray variable, and saved in the .ini.
> The next time the clip is run, I want to pick up the 1|3|5 from the .ini,
> and change the ListValues array variable to _1|2|_3|4|_5. Then the wizard
> would check those three boxes. But what's the best way to get those
> underscores inserted in the list?
> Has anyone already done something like that?
> Dick Gascoigne
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Thanks to all who responded. I actually did something similar to Martyn s suggestion just before I got it. Used a Set instead of StrReplace. It all cameMessage 1 of 5 , Mar 6, 2002View SourceThanks to all who responded. I actually did something similar to Martyn's suggestion just before I got it. Used a Set instead of StrReplace.
It all came together nicely. Now we can take one huge print file with 1,000's of documents in it, and split it up to be sent to multiple printers simultaneously. With the capability to specify which printers are to be used via the checkboxes.
Neat stuff. Not bad for a "text editor", Eric ;-)))
Appic (S) Pte Ltd
74A Amoy Street; Singapore 069893
Tel: (+65) 6225-9908 Fax: (+65)6 225-9092
[Non-text portions of this message have been removed]