Visual Basic - no coinciden los tipos, ayudaaa

Life is soft - evento anual de software empresarial
 
Vista:

no coinciden los tipos, ayudaaa

Publicado por ciber (3 intervenciones) el 05/05/2006 03:11:09
HOLA, PUES ESTOY TRATANDO DE METER UNA CLAVE DE REGISTRO CON EL VALOR QUE APAREZCA EN UN TEXTBOX Y ME DICE QUE NO COINCIDEN LOS TIPOS ¿ME PODRIAN AYUDAR A SABER DONDE ME ESTOY EQUIVOCANDO PORFA?.

MI CODIGO ES ESTE:

Private Sub Command1_Click()
Set reg = CreateObject("WScript.Shell")
reg.RegWrite "HKEY_CURRENT_USER\Prueba\Prueba", "URL.Text", "REG_DWORD"
MsgBox "HEcho"
End Sub

Private Sub URL_Change()

End Sub

COMO LES COMENTO EL PROBLEMA ES QUE CUANDO LE DOY PLAY ME DICE QUE NO COINCIDEN LOS TIPOS PERO LA CLAVE DE REGISTRO "PRUEBA" SI SE CREA, PERO EL CONTENIDO NO.

POR FAVOR AYUDA!!!!

GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:no coinciden los tipos, ayudaaa

Publicado por Orochi (15 intervenciones) el 09/05/2006 05:49:43
No te funciona por la manera que lo pones

reg.RegWrite "HKEY_CURRENT_USER\Prueba\Prueba", "URL.Text", "REG_DWORD"

Debe ser asi :

reg.RegWrite "HKEY_CURRENT_USER\Prueba\Prueba", URL.Text, "REG_DWORD"

Y claro, el TextBox llamado URL debe ser valido para DWORD

<a href="http://www.codigoplus.com">www.codigoplus.com</a>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar