Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > need help with setting directory and saving


Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2003, 11:02 AM
itzyouknowwho itzyouknowwho is offline
Newcomer
 
Join Date: May 2003
Posts: 22
Default need help with setting directory and saving


ok so my main thing right now i need help with is setting a directory to save to. im using a drive box and then directory list to pick the directory you want and then using a button to set it. im not sure how or what to do. any help would be great.

matt
Reply With Quote
  #2  
Old 06-23-2003, 12:00 AM
gundavarapu's Avatar
gundavarapu gundavarapu is offline
Senior Contributor
 
Join Date: Aug 2002
Location: In loved one's heart
Posts: 929
Default

You can do one of this ways or any of the several ways to add this functionality.

in the set button add this code.
SaveSetting "MyApp","MyForm","DefaultDIR",dir1.path

and use this line to retrieve the value
str = GetSetting("MyApp","MyForm","DefaultDir","C:\")

or just open a file and save this value and use it.
__________________
Regards,
Sidhu

When you do not get the expected result, change your programming language.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving to the same directory Paulhatzar General 4 05-04-2003 04:35 PM
Saving text file to a specific directory Brian1 General 2 02-21-2003 05:13 PM
Saving info from a text box as the name of a file? Thal General 12 01-15-2003 02:07 AM
Microsoft Outlook automation Attachment saving question lamar_air Word, PowerPoint, Outlook, and Other Office Products 6 06-07-2002 07:50 AM
saving to the programs directory myriad General 3 11-27-2000 02:34 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->