Login Page - Create Account

Support Board


Date/Time: Sat, 19 Apr 2025 15:39:45 +0000



Post From: [ACSIL] How select Path only like Set(get)PathAndFileName?

[2025-03-16 20:45:33]
User351137 - Posts: 14
Example :
I currently use the following in the input field:
Input_SaveDirectory.SetPathAndFileName(GetUserPicturesFolder().c_str());

The issue is that the user must select a folder that contains at least one file for the "Open" button in the dialog to become active. After selecting a file, the user can manually delete the filename so that only the path remains in the input field.

However, this is an unnecessary extra step. The Browse dialog itself is perfect, and it would be great if we could select just the folder without needing to choose a file.

Would it be possible to add a function like SetPath and GetPath that allows selecting only the directory? This would simplify workflows when working with log files, images, CSV files, and scripts.

I need the ability to set and get only the path (without selecting a file) in a study because I work with different types of files in Sierra Chart.

For example:

Logs: I want to specify a directory where my study writes log files for debugging or data tracking.
Images: My study generates temporary images that need to be stored in a specific folder.
CSV files: I load external data such as support/resistance levels or market statistics from CSV files, and I need to define the folder where these files are stored.
Scripts: I execute external scripts for additional calculations, and these scripts are stored in a specific directory.