Quantcast
Viewing all articles
Browse latest Browse all 15778

[RESOLVED] Dictionary (GetValueOrNull) Error

Hello,

I have the following code in my app that used to work fine, but for some reason I started getting an error today!

PHP Code:

For Each item As ListViewDataItem In FetchedIDs_LV.Items
  
If Not ProductIMG_4Saving_Dictionary.ContainsKey(item(0)) Then
     ProductIMG_4Saving_Dictionary
.Add(item(0), ProductIMG_Dictionary.GetValueOrNull(item(0).ToString))
  
End If
Next item 

The error is the following:
Image may be NSFW.
Clik here to view.
Name:  CaptureD.jpg
Views: 31
Size:  8.4 KB


I tried changing item(0).ToString to CType(item(0),String), based on a recommendation I saw in another post, but it didn't make a difference. Any recommendation/help would be appreciated to figure out what is happening here.
Attached Images
Image may be NSFW.
Clik here to view.
 

Viewing all articles
Browse latest Browse all 15778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>