Oppure

Loading
09/03/13 14:48
fosforo
Ciao

Proprio non capisco perchè non funziona.
Eppure se tolgo la linea di codice che mette il dato nell'Array non da il messaggio
d'errore del Catch:

Public Sub readXml()
xmR = XmlReader.Create(MyFile)
While xmR.Read
If xmR.IsStartElement("row";) Then

Try
xmR.ReadToFollowing("Cognome";) 'leggo il tag
MyArray_ID(x) = xmR.ReadElementContentAsString 'lo inserisco nell'Array
'PlayOut.TextBox1.AppendText("Clip ID: " & (xmR.ReadElementContentAsString) & Chr(9))

Catch
MsgBox("Il file XML non è compatibile con il sistema";)
End Try


End If

End While


Grazie anticipatamente
Ultima modifica effettuata da fosforo 09/03/13 14:55
aaa
10/03/13 11:01
Il Totem
If xmR.ReadToFollowing("Cognome") Then
    MyArray_ID(x) = xmR.ReadElementContentAsString()
End If
aaa
11/03/13 9:20
fosforo
Grazie Totem.:k:
aaa