Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: File()
Divers
Thread ID:
00862385
Message ID:
00862556
Vues:
16
Part of the problem was that a pic of me was always showing up with a completly different path but the same file name & in frustration I deleted that file & when I rebuilt the exe it complained about the missing 300x350.jpg

So lesson learned if a image with the same name is compiled into your exe you will never get fox to set it to any other path of the same file name !

It will always use the compiled image !!!



>LOCAL cEmployeesFolder , xFile
>
>cEmployeesFolder = Addbs(Addbs(oApp.cEmployeeImagesFolder) + "_" + Transform(employees.Id))
>If Not Directory(cEmployeesFolder)
> Md (cEmployeesFolder)
>Endif
>
>xFile = cEmployeesFolder + "300x350.jpg"
>
>*-- For a file that does not exist this next test will fail
>*-- That is to say that the block is not executed
>If Not File(xFile)
> *-- This next line fails to execute when the var xFile does not exist
> xFile = Addbs(oApp.cEmployeeImagesFolder) + "camera.jpg"
>Endif
>
>BUT the watch window reports
> File(xFile) is .F.
> NOT File(xFile) is .T.
>
>
>Why would this happen ?
Greg Foote
Software At Work, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform