VB Code:
If strTemp2 = varAnimals Then Image1.Picture = LoadPicture(App.Path & strTemp3) Else Image1.Picture = LoadPicture(App.Path & "\pics\not.jpg") End If
what I want the code to do is if strTemp2 = varAnimals then it displays the correct picture (strTemp3 is the pictures path that gets read from a txt file)
or if there is no picture listed in the file to display not.jpg. It displays the not pic but does not display the ones that have pics...![]()




Reply With Quote