Message Boards Message Boards

0
|
5360 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Why does Button[] not work with SystemDialogInput["FileSave"]?

Posted 10 years ago

datalist = {{1, 2}, {2, 4}, {3, 8}, {4, 16}};

Button["Save", Export[SystemDialogInput["FileSave"], datalist, "Table"]]

After I run it, I can see the filename but cannot find it as a file. Thanks.

POSTED BY: steve ma
2 Replies
Posted 10 years ago

It seems that without Method->"Queued" Export will not wait for your choice. Use it then:

Button["Save", 
 Export[SystemDialogInput["FileSave"], datalist, "Table"], 
 Method -> "Queued"]
POSTED BY: Kuba Podkalicki
Posted 10 years ago

It works. Thank you.

POSTED BY: steve ma
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract