Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If file does not exist
Message
From
12/04/2005 09:18:28
 
 
To
12/04/2005 08:14:27
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01003647
Message ID:
01003682
Views:
16
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform