i have this set of codes below. I would like to ask how can i change my set of codes to be able to read 2 elements in an 'or' condition, instead of just reading 1 element called 'bt', i need to read another element called 'noRec'. Or do you guys have another way?
VB Code:
Public Sub bookedtim() 'CAN ReDim bookedtime(10) Dim a As New StringReader(space) schk = New XmlTextReader(a) schk.WhitespaceHandling = WhitespaceHandling.None schk.Read() 'xml schk.Read() 'fb schk.Read() 'res Dim thisn As Integer While Not schk.EOF If Not schk.IsStartElement Then Exit While End If bookedtime(thisn) = schk.ReadElementString("noRec") thisn = thisn + 1 End While ReDim Preserve bookedtime(thisn - 1) End Sub




Reply With Quote