Foros del Web » Programando para Internet » ASP Clásico »

Microsoft VBScript compilation error '800a03ea'

Estas en el tema de Microsoft VBScript compilation error '800a03ea' en el foro de ASP Clásico en Foros del Web. Hola amigos. Tengo el siguiente problema con un sistema ASP: Microsoft VBScript compilation error '800a03ea' Syntax error /Brite/Class/cASPString.asp, line 20 Class ASPString ^ No se ...
  #1 (permalink)  
Antiguo 09/07/2009, 14:01
 
Fecha de Ingreso: junio-2009
Mensajes: 47
Antigüedad: 15 años, 10 meses
Puntos: 1
Microsoft VBScript compilation error '800a03ea'

Hola amigos.

Tengo el siguiente problema con un sistema ASP:
Microsoft VBScript compilation error '800a03ea'

Syntax error

/Brite/Class/cASPString.asp, line 20

Class ASPString
^
No se porque cuando agrego la referencia a la clase "cASPString.asp" me sale este error.

El codigo de la clase es el siguiente:

Código:
<%
'========================================================================
' MODULE:    cASPString.asp
' AUTHOR:    www.u229.no
' CREATED:   May 2006
'========================================================================
' COMMENT: A fast string class for classic ASP.               
'========================================================================
' ROUTINES:

' - Public Property Get NumberOfStrings()
' - Public Property Get NumberOfBytes()
' - Public Property Get NumberOfCharacters()
' - Private Sub Class_Initialize()
' - Public Sub Append(sNewString)
' - Public Function ToString()
' - Public Sub Reset()
'========================================================================

Class ASPString


Dim m_sArr            '// Array holding the strings.
Dim m_lResize        '// Factor for rezising the array.
Dim m_lStrings       '// Number of strings appended.

'// PROPERTIES
Public Property Get NumberOfStrings()
    NumberOfStrings = m_lStrings
End Property

Public Property Get NumberOfBytes()
    NumberOfBytes = LenB(Join(m_sArr, ""))
End Property

Public Property Get NumberOfCharacters()
    NumberOfCharacters = Len(Join(m_sArr, ""))
End Property

'------------------------------------------------------------------------------------------------------------
' Comment: Initialize default values.
'------------------------------------------------------------------------------------------------------------
Private Sub Class_Initialize()
    m_lResize = CLng(50)
    m_lStrings = CLng(0)
    ReDim m_sArr(m_lResize)
End Sub

'------------------------------------------------------------------------------------------------------------
' Comment: Add a new string to the string array.
'------------------------------------------------------------------------------------------------------------
Public Sub Append(sNewString)

    If Len(sNewString & "") = 0 Then Exit Sub
    
    '// If we have filled the array, resize it.
    If m_lStrings > UBound(m_sArr) Then ReDim Preserve m_sArr(UBound(m_sArr) + m_lResize)

    '// Append the new string to the next unused position in the array.
    m_sArr(m_lStrings) = sNewString
    m_lStrings = (m_lStrings + 1)
End Sub

'------------------------------------------------------------------------------------------------------------
' Comment: Return the strings as one big string.
'------------------------------------------------------------------------------------------------------------
Public Function ToString()
    ToString = Join(m_sArr, "")
End Function

'------------------------------------------------------------------------------------------------------------
' Comment: Reset everything.
'------------------------------------------------------------------------------------------------------------
Public Sub Reset()
    Class_Initialize
End Sub

'========================================================================
End Class 
'========================================================================
%>
Y cuando incluo esta clase en otros proyecto si me funciona de maravilla, solo en este proyecto que estoy trabajando actualmente me esta generando este error.

Alguien puede ayudarme'
  #2 (permalink)  
Antiguo 09/07/2009, 14:10
Avatar de Muzztein  
Fecha de Ingreso: agosto-2002
Ubicación: Hangar 18
Mensajes: 1.703
Antigüedad: 22 años, 8 meses
Puntos: 16
Respuesta: Microsoft VBScript compilation error '800a03ea'

quizas hay otra clase con el mismo nombre o la clase definida anteriormente esta mal escrita y no esta cerrada.

fijate en el include anterior a este.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:30.