ya no me da error esa linea pero me sigue dando error la ultima me dice tambien que se esperaba (=)
aca el codigo tal cual como lo puse
Public Function ActualizarDatos(dato1 As String, dato2 As String) As String
Dim sBuffer As String * BUFFER_LEN, iResult As Integer, sData As String
Dim hInternet As Long, hSession As Long, lReturn As Long
'get the handle of the current internet connection
hSession = InternetOpen("vb wininet", 1, vbNullString, vbNullString, 0)
'get the handle of the url
Dim sURL As String
'sURL = "
http://www.jose-campos.com/prueba/recogerdatos.php?dato1=&dato1&dato2=&dato2" sURL = "
http://www.jose-campos.com/prueba/recogerdatos.php?dato1=" & dato1 & "&dato2=" & dato2
If hSession Then hInternet = InternetOpenUrl(hSession, sURL, vbNullString, 0, IF_NO_CACHE_WRITE, 0)
'if we have the handle, then start reading the web page
If hInternet Then
'get the first chunk & buffer it.
iResult = InternetReadFile(hInternet, sBuffer, BUFFER_LEN, lReturn)
sData = sBuffer
'if there's more data then keep reading it into the buffer
Do While lReturn <> 0
iResult = InternetReadFile(hInternet, sBuffer, BUFFER_LEN, lReturn)
sData = sData + Mid(sBuffer, 1, lReturn)
Loop
End If
'close the URL
GetUrlSource = sData
End Function
ActualizarDatos ("500º","60º")