Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If file does not exist
Message
De
12/04/2005 09:18:28
 
 
À
12/04/2005 08:14:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01003647
Message ID:
01003682
Vues:
17
Hi Tore, I think that is no possible in VFP9. You must enter in the controlsource the name of the *bmp and if the file do not exists it returns error. I have to find another way to do this

>It's been a long time since I did this myself, so I am not quite sure if you can do it this way, but I see no reason why not. Another solution is to have two shapes on top of each other, one with a 'Print when File(file1.bmp)', and the other 'Print when .not. File(file1.bmp)'.
>
>>this code in the controlsource of the shape? I just did it, but it do not work. Are you sure of this?
>>
>>>iif(file('file2.bmp'),'file2.bmp','file1.bmp')
>>>
>>>>I need to print two file *bmp in my report: if exist the second *bmp, must be printed the second, otherwise must be printed the first (that is always present instead of the second). I put in 'print when' file("myfile2.bmp"), but it return an error if the file do not exist.
>>>>Some suggest please?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform