General information
Category:
Forms & Form designer
I have an application where I display an image on a form. I search for a specific .jpg image. If it exists, I display it, otherwise I display a default .bmp image that simply says there is no image available.
The code in the pageframe refresh event is as follows:
* Locate the appropriate graphics image for display
m_look = m_dismodpath+'d'+ALLTRIM(Base.lcode)+'.jpg'
IF FILE('&m_look')
thisform.Pageframe1.Page1.Pageframe1.Page2.Image1.Picture = m_look
ELSE
m_look = m_disdefpath+'d'+ALLTRIM(Base.lcode)+'.jpg'
IF FILE('&m_look')
thisform.Pageframe1.Page1.Pageframe1.Page3.Image1.Picture = m_look
ELSE
thisform.Pageframe1.Page1.Pageframe1.Page3.Image1.Picture = m_disdefpath+'nopic.bmp'
ENDIF
ENDIF
This code works fine running under Windows 2000, but I'm getting mixed results on Windows 98. On occasion it works, but in most instances I am getting the error message:
Fatal error: Exception Code=C0000005
Any thoughts?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only