![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
Can anyone help me to write a code to select a file in the Dir(eg. textall.dat) and safe it to another Dir? I tried SaveDialog but the filename field is emty. I wanted filename field to be fill up w/o letting the user select. Thanks TC |
|
|||
|
[quote=specci48;15555]To preselect a filename in the savedialog you have to define the file property of the savedialog before showing it, e.g.:
Code:
SaveDialog1.File = AppPath & "\test.txt" SaveDialog1.Show Thanks for the code and help. The Savedialog1.file=AppPath &"\test.txt" helps, but the "text.txt" file in the "file name: box"(see attached jpg) is NOT SAVING to any directory? I don't understand why? save dir.jpg Thanks |
|
||||
|
Why not read the file to end and write the file again in the new dir, this way the user is not prompt in any way...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
|||
|
Hi All,
Thanks for all that help here. I Have manage to pre-select the file to safe into another directory. (its a NO GO to read sl3 file and filewrite again) However, appreciate if anyone can help to shortern the steps required to safe the selected file without having to show the openDialog. Thanks. |
|
||||
|
Posting the Actual code would help us Help you...How can we shorten the steps if we do not know the way you took?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing Last edited by Cableguy : 08-08-2008 at 01:15 PM. |
|
|||
|
Thanks Cableguy, problem solved. Here the code
opendialog1.File = AppPath & "\alldata.sl3" openDialog1.Filter = "sl3 DATA Files|*.sl3" SaveDialog1.File = OpenDialog1.File If SaveDialog1.Show = cCancel Then Return End If FileCopy(OpenDialog1.File, SaveDialog1.File) Thanks Again |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save As and Compile Inconsistency | corwinckler | Bug Reports | 0 | 01-14-2008 07:52 PM |
| save filter of a table | manu | Questions & Help Needed | 4 | 08-23-2007 04:46 PM |
| How to save images after they have been placed in an imagelist | XerVision | Questions & Help Needed | 2 | 07-13-2007 09:59 PM |
| somebody got an example load/save textfile? | Stellaferox | Questions & Help Needed | 4 | 06-14-2007 06:05 PM |
| FTP library - won't getfile on PDA more than once | mwaite | Bug Reports | 4 | 04-30-2007 03:37 AM |