Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2004, 09:05 AM
Member
 
Join Date: May 2004
Posts: 78
Default Dialog box for datafile.save

Hi - sorry another question. :-[

I've been able to save and load a datafile that saves an array to a user's PC.

However, I want to be able to let the user choose a filename / trigger a windows dialog box.

The code:
Datafile.save("\\C:data.txt","data")
saves the data array to the C drive.

The code:
Dialogs.filesave(" etc. etc. triggers a dialog box.

Can I somehow combine the two to save a datafile via a dialog box.

__________________
:)
Reply With Quote
  #2 (permalink)  
Old 05-20-2004, 10:39 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Dialog box for datafile.save

Code:
var filter = "Data files(*.txt)|*.txt|";
var filename = Dialogs.fileSave(filter, ".txt");

if (filename) 
{
    DataFile.save(filename, var0, var1, ..., varn);
}
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.