May exprted EXE (or vst) save a choosen file location?

For general discussion related FlowStone
Post Reply
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

May exprted EXE (or vst) save a choosen file location?

Post by kortezzzz »

hi everybody.

Got some "post- exporting" problems:
i would like that my project will save a file into a manual selected folder location and will load that file in the future every time the user fires it up, untill he chooses other location manually. to make it happen, i'v used 4 primitives:
1)"file dialog"- to choose the wanted folder.
2)"save text"- to save the text in the chosen folder (by "file dialog")
3)"load text"- to load the specific SAVED file from the the chosen folder
4)"afterload"- to load the file every time the user fires the application up

the problem is that after the project compiled, i try to save the file location, but file dialog
doesn't realy saves the selected location and always sending zero value after reloading, so the app never finds the last selectrd folder location again. what i'm doing wrong? is it a string primitive disadvantage or what?
please take a look at the attachments. i'v attached tboth FSM and .exe
Attachments
save a flie_12.fsm
the schematic
(8.38 KiB) Downloaded 903 times
save a file_12.zip
the exported exe
(1.84 MiB) Downloaded 942 times
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: May exprted EXE (or vst) save a choosen file location?

Post by billv »

had to change a bit....your fsm confused me a little...
Functions now as you want it, ..the 'file found/not not found' seems to work ok too.
Hope it helps...
save a flie_12-1_fix.fsm
(68 KiB) Downloaded 952 times
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: May exprted EXE (or vst) save a choosen file location?

Post by kortezzzz »

THANK YOU BILLV!!!
it works great :)
now i understand what i'v done wrong. thanks a lottttttttt, man.
Post Reply