-
Hello!
I have a function that loads data from a file, then creates new file on disk (JPEG picture) and loads picture. But there comes to error. The function looks like that:
Funciton GetPic(id as string) as StdPicture
'''
''' Some other code
'''
Set GetPic = LoadPicture(app.path & "\File.jpg")
End Function
Then when I try to set LoadPicture to my function it returns error.
Can anyone explain me why?
-
<?>
what exactly is the error..number etc.
-
Sorry, wrong thoughts...
I meant to ask what's the difference between IPictureDisp and StdPicture? Because when I tried example in my first post with function declared as StdPicture, it worked, but when I tried to declare it as IPictureDisp, it returned error in Set statement ("Unexpected error").