Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relative path with camel case
Message
De
14/02/2017 05:23:38
 
 
À
14/02/2017 03:18:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01647931
Message ID:
01647939
Vues:
101
This message has been marked as the solution to the initial question of the thread.
>I'm sure this has been asked, but...
>
>Is there a way to obtain a relative path to a file when providing the full path to the file, and a path to another path location. Plus have it returned in proper camel case as it would appear in the system. The SYS(2014) provides the relative path but it is uppercase.
relativePath = Sys(2014, "C:\VHdev\appli\Dooxi\Progs\dooxi.scx", Home(1))
? relativePath && ..\..\VHDEV\APPLI\DOOXI\PROGS\DOOXI.SCX

relativePath = Strtran(;
  m.relativepath;
, Strtran(m.relativepath, '..\');
, Substr("C:\VHdev\appli\Dooxi\Progs\dooxi.scx", Atc(Strtran(m.relativepath, '..\'), "C:\VHdev\appli\Dooxi\Progs\dooxi.scx"));
)
? relativePath && ..\..\VHdev\appli\Dooxi\Progs\dooxi.scx
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform