scusate se insisto, mi aiutate a tradurre questo script in vb.net? vi posto quello che ho fatto, anche se mi va in errore:
Codice PHP:
Dim strH As Integer
Dim strW As Integer
Dim c_row As New ArrayList
strH = Request.Params("height")
strW = Request.Params("width")
Dim strRows As Integer
Dim strCols As Integer
Dim strValore As String
Dim hex As String
Dim r As String
Dim g As String
Dim b As String
Dim strNumero As String
For strRows = 0 To strH
strNumero = "px" & strRows
c_row.Add(Request.Params(strNumero).Split(","))
For strCols = 0 To strW
strValore = c_row(strCols)
If strValore <> "" Then
hex = strValore
While hex.Length > 6
hex = "0" & hex
End While
r = hex(hex.Substring(0, 2))
g = hex(hex.Substring(2, 2))
b = hex(hex.Substring(4, 2))
'...
End If
Next
Response.Write("[b]" & strNumero & ": [/b]" & Request.Params(strNumero) & "
")
Next
mi da errore sulla stringa strValore = c_row(strCols) ma non so perchè