INM home

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dir 8] Afficher une image par d éfaut si chemin non trouvé



Salut William


> member("PLANCHE_00").fileName = the moviePath 
> &"@PHOTO"&member("NOM_REPERE").text & "" & member("NOM").text
>
> Je souhaiterai si une photo n'existe pas dans le dossier PHOTO 
>afficher 
> une photo par défaut, mais la je sèche
> Une piste ?

Le faire en plusieurs étapes:

a.) construire le chemin

  strFile = the moviePath &"@PHOTO"&member("NOM_REPERE").text & "" & 
member("NOM").text


b.) vérifier s'il existe

  xFX = xtra("fileXtra4").new()
  if xFX.fx_fileExists(strFile) then

   c1.) si oui alors tout va bien

   member("PLANCHE_00").fileName = strFile

  else

   c2.) si non alors tu affiches l'image par défaut

   member("PLANCHE_00").member = member("imageParDefaut")

  end if

bonne journée
séb



pistes-l List Home | Main Index | Thread Index
Search archives

 

 


© 2002 Integration New Media. All rights reserved.
Legal | Sitemap

 

Services Solutions Products Support Gallery Store Download Feedback Contact About Us