Hello everyone, I hope i can explain this well, so here it goes.
I have a folder, I've set it to be the default directory while i use fox.
Now I'm building a program that will have form1 as main screen
In that form users will be able to create new directories, in which they will work. (so someone who owns lets say 15 stores would open 15 directories)
I'm currently writting a code that will create tables in those new directories whenever they create a new one.
Form 2 is where they will be able to select other forms depending on what they wanna do (take care of quantity of stuff, accounting etc)
The part i struggle with is how to than set path to that new folder ive created with MKDIR().
So if i start from form 1 and select/create (example) as my directory, i want that to be the directory for the rest of their time using the program and only use tables from that folder, until they turn the program off/or i state in another code that they will open another or close this directory.
Here is the code i have for creating the folders if it means anything :
I have a folder, I've set it to be the default directory while i use fox.
Now I'm building a program that will have form1 as main screen
In that form users will be able to create new directories, in which they will work. (so someone who owns lets say 15 stores would open 15 directories)
I'm currently writting a code that will create tables in those new directories whenever they create a new one.
Form 2 is where they will be able to select other forms depending on what they wanna do (take care of quantity of stuff, accounting etc)
The part i struggle with is how to than set path to that new folder ive created with MKDIR().
So if i start from form 1 and select/create (example) as my directory, i want that to be the directory for the rest of their time using the program and only use tables from that folder, until they turn the program off/or i state in another code that they will open another or close this directory.
Here is the code i have for creating the folders if it means anything :
LOCAL direktorijum, putanja
direktorijum = ALLTRIM(ThisForm.Grid1.Column1.Text1.Value)
putanja = "C:\Trafika\" + direktorijum
* Create the directory if it doesn't exist
IF !DIRECTORY(putanja)
MKDIR (putanja)
ENDIF
ENDIF
DO FORM GLAVNA
Currently i do have a code in there that creates 1 table, and it does save it to the path. But when i go further and open the form2And here is the code that i tried putting under this code, in an attempt to set path to that folder
LOCAL putanja1
putanja1 = 'C:\Trafika\' + ALLTRIM(firme.nazivfirme)
SET PATH TO (putanja1)