Posted By
|
Message
|
Kottis
Registered 20/07/2010
Points 11
|
26th September, 2010 at 11:48:22 -
Is it possible to bring up the Windows file selector when saving and loading with the assarray object? Like with the regular array objects' "save/load via selector".
I think I read somewhere how to do it, but I might be imagining things...
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
26th September, 2010 at 16:20:37 -
Use the "File" extension.
Below is the minimum required code, but you should probably add a file extension filter, default path, etc.
+ Button is pressed
-> Button: Set Flag 0 to ON
-> File: Open load selector on ""
+ File: Last action OK
+ Button: Flag 0 is ON
-> Dynamic Array: Load file from FileSelReturn$( "File" )
-> Button: Set Flag 0 to OFF
n/a
|
Kottis
Registered 20/07/2010
Points 11
|
26th September, 2010 at 18:37:05 -
I thought it was something simpler like leaving the filename blank when telling Assarray where to save, but that doesn't seem to work. I could have sworn I read something like that somewhere...
Anyhoo, your solution is fine, so I'll just use that for now, ta!
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
26th September, 2010 at 20:42:33 -
Sorry - I misread your post. I'm not sure about the Associative Array extension, as I don't seem to have it installed (thought you meant Dynamic Array). There may be an easier way...
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
26th September, 2010 at 21:04:27 -
On a side note add this to the Last Action OK event:
FileSelReturn$( "File" ) is a File
otherwise if you press cancel on the load selector the event will still trigger causing unwanted results. Learnt this the Hard way!!
n/a
|
|
|