Devv Active Member Licensed User Longtime User Jul 18, 2016 #1 Hi this is how im detecting if an RSS item have a thumbnail and i Code: Copy Sub Parser_StartElement(Uri As String, Name As String, Attributes As Attributes) If Attributes.Size > 1 Then imglink = Attributes.GetValue(2) End If End Sub How can i know if an item does not have a thumbnail ?
Hi this is how im detecting if an RSS item have a thumbnail and i Code: Copy Sub Parser_StartElement(Uri As String, Name As String, Attributes As Attributes) If Attributes.Size > 1 Then imglink = Attributes.GetValue(2) End If End Sub How can i know if an item does not have a thumbnail ?
Erel B4X founder Staff member Licensed User Longtime User Jul 19, 2016 #2 You shouldn't use GetValue if you want your app to be reliable. Use GetValue2 with the correct name. It will return an empty string if there is no such attribute. Upvote 0
You shouldn't use GetValue if you want your app to be reliable. Use GetValue2 with the correct name. It will return an empty string if there is no such attribute.