Hello!
I have kind an annoying problem. I created function for loading pictures and it uses some kind of "logic". But here's a problem:
Public Function LoadPic(ID As String, cond As Condition) as IPictureDisp
Dim SomeStr As String
'.....
'..... here goes code
'.....
' And on the end I use
Set LoadPic = LoadPicture(pic & ".jpg")
End Function
And then VB generates an unexpected error, when I try to set my function to LoadPicture. Can you help me with this?


Reply With Quote