DisplayPath()
Ever needed to show a long path in a short space? That's what this function is all about. It was added in VFP 7.
Usage |
cShortPath = DISPLAYPATH( cFileName, nMaxChars ) |
The return value of DisplayPath() is always lowercase, regardless of the original case of the path. Given that this function is designed for creating displayable paths, this is a particularly glaring error. |
Example |
* These results come from Tamar's Windows 2000 machine ? DisplayPath( HOME(7), 30 ) && "c:\...\visual foxpro\" ? DisplayPath( HOME(7), 40 ) && "c:\...\microsoft\visual foxpro\" ? DisplayPath( HOME(7), 60 ) && "c:\...\tamar\application data\microsoft\visual foxpro\" ? DisplayPath( HOME(7), 70 ) && "c:\...\tamar\application data\microsoft\visual foxpro\" ? DisplayPath( HOME(7), 80 ) && "c:\documents and settings\tamar\application data\microsoft\visual foxpro\" |
See Also |