Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2005, 01:36 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default selecting a file for filesave

I'm having problems with the dialog box filesave.

The user can select a database where he wants to store his data.
In the dialog box, the database he's currently working on should be
in the dialogs filename box.

I've stored this path in a var: HuidigBestand.
I use this command.

Code:
var res = Dialogs.fileSave("(*.mdb)|*.mdb","",HuidigBestand);
For some reason, the dialog box doesn't appear.

I obtained the paths trough the filesave-dialog so they look like this

\\XP\Bureaublad\test.mdb

When i use double backslashes like this

\\XP\\Bureaublad\\test.mdb

it works fine.

Is there a way I can convert the single backslashes to doubles
or is there another way around it.


ps I allready tried:
HuidigBestand.split("\").join("\\")
But it doens't work
Reply With Quote
  #2 (permalink)  
Old 05-30-2005, 01:16 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:selecting a file for filesave

You cannot declare the HuidigBestand variable like this:
Code:
var HuidigBestand = "\\XP\Bureaublad\test.mdb";
A series of alphanumeric characters that begins with a backslash enclosed in double or single quotes defines an escape sequence. For instance, "\t" means horizontal tab.

You should do like this
Code:
var HuidigBestand = "\\\\XP\\Bureaublad\\test.mdb";
But if the string is input in a text field and retrieved by the getVariable method, you must input "\\XP\Bureaublad\test.mdb" into the text field, not "\\\\XP\\Bureaublad\\test.mdb".

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 07:54 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.