Article ID: 114806
Article Last Modified on 11/17/2003
SET VOLUME C: TO && Clears VOLUME setting, if any SET DEFAULT TO && Makes the volume's root the current directory ?SYS(5) && Returns the current volume (disk) name
SET VOLUME C: TO "Macintosh HD:"
SET DEFAULT TO "C:\Desktop Folder\TEST"
-or-
SET DEFAULT TO "Macintosh HD:\Desktop Folder\TEST"CLEAR CLEAR ALL DEFINE WINDOW GetInfo FROM 0,0 to 20,70 ACTIVATE WINDOW GetInfo MOVE WINDOW GetInfo Center @ 0,0 SAY "This example will set the default directory to" @ 1,0 SAY "<volume name>:\<FoxPro folder> and then use the " @ 2,0 SAY "CUSTOMER.DBF table in area #1. This will demonstrate" @ 3,0 SAY "how to make your code independent of any specific" @ 4,0 SAY "folder or volume name..." FPFOLDER = " " @ 6,0 SAY "Enter the folder name where FoxPro is installed" @ 7,0 GET FPFolder PICTURE "XXXXXXXXXXXXXXXXXX" DEFAULT "MyFolder" READ FPFOLDER = ALLTRIM(FPFolder) @ 8,0 SAY "------------" @ 9,0 SAY "Volume name is: "+SYS(5) @ 10,0 SAY "Currently located in: "+SYS(2003) CURLOC = SYS(5)+ FPFOLDER @ 11,0 SAY "Setting default directory/folder to: "+CURLOC SET DEFAULT TO (Curloc) @ 12,0 SAY "Using "+CURLOC+":Tutorial:CUSTOMER.DBF in area # 1" SELECT 1 USE "TUTORIAL\CUSTOMER" IN 1
Additional query words: VFoxMac FoxMac desk top akz
Keywords: KB114806