Re: Arrays and OpenFile
- Thanks for pointing those errors out. It turns out the real problem
was with the array indexing.
The now working clip is as follows
^!Set %prefix%=SomeCompany; %suffix%=.html
^!IfTrue ^$IsEmpty(%List%)$ end ELSE continue
^!If ^%counter%=0 end
I do the updates for a rather large number of product description
pages. I use an excel spreadsheet to keep track of which pages belong
to different catagories. Using this clip I can just copy a range of
model numbers from the spreadsheet, pop them into the clip and it
opens all the corresponding files that match the pattern of :
Thanks again for your help.
--- In email@example.com, "Hugo Paulissen"
> Hi Chris,$
> - I'm afraid I do not really folow your intentions, but you have a
> where you should use a % (common error ;-)...
> ^!Set $counter%=^%Array0%
> should be
> ^!Set %counter%=^%Array0%
> Your variable was not defined.
> - Personally I'd omit the spaces in these lines as well...
> ^!If ^%counter% = 0 end