Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FULLPATH Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00112576
Message ID:
00112633
Vues:
36
>The only time, that I know of, when fullpath() returns the default directory + file name is when it can't find the file.
>You may want check the path just before FullPath() is called.
>
>I guess we could call it a Feature :)
>
>In code I usually test it with file(fullpath('somefile.txt')).
>
>-Michael M. Emmons
>
>>Correction
>>
>>I need to have the fullpath of an icon to be used in an OLE list view control. I have my path setup to point to the graphics sub directory, e.g. SET PATH TO 'g:\acmds\graphics;g:\acmds\data;g:\acmds\utils'
>>
>>setpath is on
>>
>>When I run the command FULLPATH('desktop.ico') in the development environment, from the command window I get 'g:\acmds\graphics\desktop.ico', but when I run it from the program I get 'g:\acmds\desktop,ico' and since there is no desktop.ico in the root directory the program will never establish an icon.
>>
>>Am I missing something on fullpath() or is there a bug/feature that I dont understand about it.
>>
>>TIA

I checked the path before hand and it was fine.

Is the file name case sensitive? If the table stored 'DESKTOP.ICO' would fullpath not find it if the file on the disk is named 'desktop.ico'?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform