Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.jpg image on form
Message
De
26/08/2002 09:31:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
.jpg image on form
Divers
Thread ID:
00693613
Message ID:
00693613
Vues:
60
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform