Lozbinator
Programmer
Hello again!
Can anybody tell me why the code below wouldn't create (inside a HTML document) a selection box? DirectoryFile has lots and lots of rows - it is a text file with one word per line. - Thanks!!
HtmlDoc.write('<td>')
HtmlDoc.write('<select name="MoveTo' + str(FileCount) +'">')
for line in DirectoryFile:
HtmlDoc.write('<option>' + line + '\n')
HtmlDoc.write('</select>\n')
HtmlDoc.write('</td>\n')
Can anybody tell me why the code below wouldn't create (inside a HTML document) a selection box? DirectoryFile has lots and lots of rows - it is a text file with one word per line. - Thanks!!
HtmlDoc.write('<td>')
HtmlDoc.write('<select name="MoveTo' + str(FileCount) +'">')
for line in DirectoryFile:
HtmlDoc.write('<option>' + line + '\n')
HtmlDoc.write('</select>\n')
HtmlDoc.write('</td>\n')