2009-02-08, 11:08 PM
whurlston Wrote:I updated the sample code on the previous page to provide a working sample. You will need to reference the IsoCodes.dll as well as the XmlTv.dll
I'm having some troubles updating fields that are empty. I'm probably just missing something... In the code below, I'm simply taking the Title and the Secondary Title and adding them, or overwriting the Description for test. I get an error, when I hit a record that has a title, and secondary, but no decription
Code:
For Each p As XmlTv.Programme In xmltv.Programmes
RecordNumber = RecordNumber + 1
lblCount.Text = RecordNumber
Application.DoEvents()
If (p.SecondaryTitle.Count) <> 0 Then
[B]p.Description(0).Text[/B] = "New Text " & p.Title(0).Text & " : " & p.SecondaryTitle(0).Text
End If
' the AddDays value would be the number of day before consider old -1.
' This is used since the isNew value is not always correct.
'If p.isNew OrElse p.OriginalAirDate > p.Start.AddDays(-7) Then
' p.Title(0).Text += " "
' End If
Next
I'm not sure enough to wonder if it's a bug in your dll or my trying to update a property that hasn't been dimensioned yet...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]