DataObject

Set FullPath, Set("FullPath")

This setting determines whether a few functions return a complete path with their results or only the drive and file name. The function returns the current setting.

Usage

SET FULLPATH ON | OFF cOnOrOff = SET( "FULLPATH" )
This setting affects the various functions that return file names for open tables and databases. In addition to the ones listed in Help (DBF(), CDX(), MDX() and NDX()), it also applies to DBC().

We're mystified as to why anyone would ever want this turned off. What good does "F:CUSTOMER.DBF" do you? Guess you might parse the drive name off to get just the file name, but even that's no big deal anymore since JustDrive()'s been added to the language.

Example

USE HOME()+"FoxUser" AGAIN ? DBF(1) && Returns something like G:\VFP 7\FOXUSER.DBF SET FULLPATH OFF ? DBF(1) && Returns something like G:FOXUSER.DBF

See Also

CDX(), DBC(), DBF(), JustDrive(), MDX(), NDX()


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net