Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PhdBase and Long Path Names
Message
De
19/02/2002 11:52:44
Jim Davis
Prospect Information Network
Chicago, Illinois, États-Unis
 
 
À
17/11/1999 18:15:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00285087
Message ID:
00622003
Vues:
23
This is probably way too late to do you any good, but I think there is a work around to this problem.

David's suggestion I think is to open the database and tables using the short / DOS path name.

If you can open the table (and database) using the short DOS name, then PhDBase doesn't seem to complain. I suspect this is because the DBF() function returns the path used to open the file, whether short or long, and not the "real" path.

The WebConnect wwUtils library has a function ShortPath() which will return the real DOS short path; it just uses the WinAPI GetShortPathName function.

If you open the database using the shortpath, and then opening tables via the database (i.e., not explicitly entering the path), the DBF() function will return the short path, and all seems okay w/ PhdBase. So e.g.:

OPEN DATABASE (ShortPath("c:\my data\mydbc.dbc"))

I think will do the trick.

I think it will be a PITA to consistently open everything using the short path, but it does seem to avoid PhDbase puking if it finds a space in a path.

jd
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform