Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 20 - DisplayPath()
Message
 
 
To
11/01/2001 16:06:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00462514
Message ID:
00462525
Views:
10
>If you've ever had a tough time displaying a short enough path to your users but show them the right parts of a long path name, VFP7's DisplayPath() might be able to help. It automatically strips out folder names to try and make a file name fit in the specified number of spaces.
>
>?DISPLAYPATH(HOME() + 'vfp.exe', 5) && Error
>?DISPLAYPATH(HOME() + 'vfp.exe', 10) && "vfp.exe"
>?DISPLAYPATH(HOME() + 'vfp.exe', 20) && "c:\..\vfp7\vfp.exe"
>?DISPLAYPATH(HOME() + 'vfp.exe', 40) && "c:\..\vfp7\vfp.exe"
>?DISPLAYPATH(HOME() + 'vfp.exe', 50) && "c:\..\microsoft visual studio 7\vfp7\vfp.exe"
>?DISPLAYPATH(HOME() + 'vfp.exe', 60) && "c:\program files\microsoft visual studio 7\vfp7\vfp.exe"

>
>The first one gives you an error, I guess cause the file can't be reduced to that small of a string, but it kindof sucks. It would be nice if it returned a blank string, or .NULL. or something.

Hi Mike,

Wouldn't it be better to move this post under Visual Foxpro 7.0 Category?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform