cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

adding filename to a user specified path

Resolvido!
Ir para a solução

Hi, 

I have a quick question.

I am writing a program that generates many files such as voltage data, resistance data etc.. I want the user to be able to specify just the path, and my program should name the files automatically.

For example if the user specfies the path "C:\measurements" where he wants all the files stored, my program should create the files Voltage.csv, Current.csv, Resistance.csv etc in that path. 

I am using write to spreadsheet. The problem is when I run it, I cant just specify a path alone in the dialog box that pops up. I have to specify the filename too.

Even if I do manage to obtain just the path value, how do I append my various file names to it? I would create the filename as a string which is in a pink color. But the file path datatypes are different having a dark blue-green color. 

How do I get about this?

Any help will be graetly appreciated.

Thank You

0 Kudos
Mensagem 1 de 4
3.383Exibições

Hi,

make a right clik on a path control, and change the properties to enforce user to choose a folder and not a file :

 

Capture.PNG

 

Best Regards,

 

V-F
0 Kudos
Mensagem 2 de 4
3.379Exibições

Hi Ramses,

 Thank you for the info. 

 I did try that, but how do I create my own file names as string data type and append it to the path?

0 Kudos
Mensagem 3 de 4
3.376Exibições
Solução
Aceita pelo autor do tópico thentangler

Hi,

use the "build path" :

Capture.PNG

V-F
0 Kudos
Mensagem 4 de 4
3.372Exibições