"Daz" <darren.blackley@xxxxxx> wrote in message
news:85730564-e3cd-4036-a518-7a645861668f@xxxxxx
On May 25, 10:33 am, "McKirahan" <N...@xxxxxx> wrote:
Quote:
> "Daz" <darren.black...@xxxxxx> wrote in message
>
> news:83da94f4-28e4-46de-9eea-0fc83ac03dee@xxxxxx
>
>
>> Quote:
> > Am trying my hand at my first HTA and would like to ask for some help
> > with a process i am tying to implement...
> Quote:
> > I would like to select one option of 3 options for a given object and
> > then once all the objects have had a selection, output the object.name
> > to a text file maching the choice... so if i picked disable for object
> > 1 and automatic for object 2 and manual for object 3 and automatic for
> > object 4 - i would have 3 text files with the object name on a line.
> > So the output file for automatic (lets call it automatic.txt) would
> > have object1 and on the next line object4.
> Quote:
> > I think you get what i mean....
> Quote:
> > here is the test hta code i am working with at the moment...
>
> [snip]
>
> Will this help? Watch for word-wrap. Quote:
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> For intDIC = 1 To UBound(arrDIC)
> strCTF = arrDIC(intDIC) & ".txt"
> Set objCTF = objFSO.CreateTextFile(strCTF,True)
> objCTF.Write arrCTF(intDIC)
> Set objCTF = Nothing
> s = s & "<li>" & strCTF & " : " &
> Replace(arrCTF(intDIC),vbCrLf," ") & vbCrLf
> Next
[snip]
Hi,
Thanks for you help and the code... it certainly is the sort of thing
i am looking for. The only issue i have at the moment is that the
output from the selected options isn't being captured in the txt files
- am i missing something?
It works for me...