Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2004, 19:10
Avatar de alealvaro
alealvaro
 
Fecha de Ingreso: junio-2004
Ubicación: BA - Argentina
Mensajes: 210
Antigüedad: 19 años, 11 meses
Puntos: 12
Ayuda Por Favor

Hola gente... como va?
Miren, necesitaría q alguien me ayude con este problema... ya me tiene loco
Es así... baje el código fuente de un programa para enviar mails anonimos... pero al momento de compilarlo me tira este error:
"No se puede encontrar el proyecto o la biblioteca"
Y me marca lo siguiente en el código:

Private Sub txtBody_KeyDown(KeyCode As Integer, Shift As Integer)
Dim i As Long
If Shift <> 0 Then Exit Sub
If KeyCode = 9 Then
i = txtBody.SelStart
txtBody.Text = Left(txtBody.Text, i) & Chr(9) & Mid(txtBody.Text, i + 1)
txtBody.SelStart = i + 1
KeyCode = 0
End If
End Sub

Y lo mismo en esta parte:

Function GenerateCode(NumChar As Integer)
Randomize Timer
Dim Code As String
Dim Chars As Integer
Dim Alfa As Integer
Code = ""
For Chars = 1 To NumChar
Alfa = Int(Rnd * 2 + 1)
If Alfa = 2 Then
Code = Chr(Int((Rnd * 25 + 1) + 97)) & Code
Else
Code = Int((Rnd * 9 + 1)) & Code
End If
Next
GenerateCode = Code
End Function

Por favor... diganme como solucionar esto q me tira como error ese bendito Chr... no entiendo
Desde ya... gracias !!!!
Alejandro