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