Microsoft VBScript runtime error '800a0411'
Name redefined: 'ForAppending'
/Filevbs.inc, line 8
"Jayna" <jayna...@usrecordings.com> wrote in message news:evtHkZuECHA.2432@tkmsftngp02...
> You're attempting to dimension a variable name that's previously been
> dimensioned in whatever level of scope you're working with. For example: <%Dim
> aDim a%>
Alternativly, this will also give the same error:
Const ForAppending = 8
Const ForAppending = 8
- or -
Const ForAppending = 8
Dim ForAppending
- or -
For i = 0 to 1
Const ForAppending = 8
Next
--
torgeir
<%
'----------------------------------------------
'
' FileSystemObject constants include file for VBScript
'
'----------------------------------------------------->
'---- iomode Values ----
Const ForAppending = 8
Const ForReading = 1
Const ForWriting = 2
'---- format Values ----
Const TristateFalse = 0
Const TristateMixed = -2
Const TristateTrue = -1
Const TristateUseDefault = -2
%>
--
George Hester
_________________________________
"Jayna" <jayna...@usrecordings.com> wrote in message
news:evtHkZuECHA.2432@tkmsftngp02...
??? The OP is already declaring ForAppending at least twice. How does adding a 3rd declaration solve the problem?
The error is 'name redefined', not 'name undefined'...
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--