Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a method to create a file path from passed string.
Message
 
 
À
18/02/2010 17:37:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01449783
Message ID:
01449833
Vues:
57
FoxPro never has been consistent with file name cases.

>Get this...
>
>When I run MD from the *command line*, the folders created will honor the upper case all caps:
>
>
>MD "F:\QUOTE\GHT001\12345"
>
>
>But, when I call the MD command from within a method in a form, it's being created in lower case!!!! I know the values I'm giving it are UPPER CASE.
>
>
>
>Lparameters tcFolderPath, tlOpenInExplorer
>
>If Empty(tcFolderPath)
> tcFolderPath = this.GetFolderName()
>EndIf
>
>Try
> Md &tcFolderPath && Create the folder
>Catch
>EndTry
>
>If tlOpenInExplorer  
> Run /N "explorer" &tcFolderPath && Open Windows Explorer to the folder
>EndIf
>
>
>
>
>My OS is Win7 64-bit and I'm writting to a Windows Server 2003.
>
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform