Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing Paths to Variables
Message
De
15/03/2005 03:54:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00995834
Message ID:
00995838
Vues:
19
This message has been marked as the solution to the initial question of the thread.
JUSTPATH("C:\pictures\dress.jpg") = "C:\pictures"
ADDBS(JUSTPATH("C:\pictures\dress.jpg")) = "C:\pictures\"
JUSTPATH("C:\mainfile\sketches\pics\10034.png") = "C:\mainfile\sketches\pics"
ADDBS(JUSTPATH("C:\mainfile\sketches\pics\10034.png")) = "C:\mainfile\sketches\pics\"

>I have a small program that is invoked by pressing on a button on my form. For each record in my database there is a picture with a path as to where the picture is stored. what I would like to do is store the path minus the filename to a variable. For example:
>
>C:\pictures\dress.jpg
>
>I would like to store 'C:\pictures\'
>
>If the file was called:
>
>C:\mainfile\sketches\pics\10034.png
>
>Then I would like to store to the variable: C:\mainfile\sketches\pics\
>
>Basically I do not want the file name. How can i do this programmtically?
>
>AMny thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform