1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
'*** Object VB Script
Dim FSO: Set FSO = CreateObject("Scripting.FileSystemObject")
'* Variables
Dim Ligne
Dim FTxt
Dim objNew
Dim Poste
Dim arrValues(200)
'*Execution
For Each objOption In txtFichier.Options
objOption.RemoveNode
Next
set FTxt = FSO.OpenTextFile("\\" & txtPoste.value & "\c$\CSST\Log\" & dynamicoptions.value)
Do While Not Ftxt.AtEndOfStream
Ligne = "" & Ftxt.Readline()
MsgBox Ligne
Set objOption = Document.createElement("OPTION")
objOption.Text = Ligne
objOption.Value = Ligne
txtFichier.Add(objOption)
Loop
Ftxt.Close |