Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / June 2007



Tip: Looking for answers? Try searching our database.

Storing text values...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkHear1 - 27 Jun 2007 17:39 GMT
Hi all,

I am creating a program that has various text boxes involved. I want
the user to be able to store the text values so that the next time the
program is run the data is visible. Can anybody please help me do this
without storing data in the registary?

Any help will be greatly appreciated.

Many Thanks,
Mark
Max Kudrenko - 27 Jun 2007 18:26 GMT
Mark,

You can use text files instead. Check the following functions:

WritePrivateProfileString
GetPrivateProfileString
WritePrivateProfileSection
GetPrivateProfileSection

Hope this helps,
Max Kudrenko

> Hi all,
> I am creating a program that has various text boxes involved. I want
[quoted text clipped - 4 lines]
> Many Thanks,
> Mark
marks542004@yahoo.com - 28 Jun 2007 04:54 GMT
> Hi all,
>
[quoted text clipped - 7 lines]
> Many Thanks,
> Mark

a simple text file should be all you need , the number and order of
them is known and controllable.

use app.path to get the location of the exe and put the file in the
same place .

open filename for output as #ffn
print #ffn, text1.text
etc

close #ffn

then use
ffn = freefile ()
open filename for input as #ffn
input #ffn, text1.text
close #ffn

the input can be in the form load
the output in the form. qryunload
BeastFish - 28 Jun 2007 05:43 GMT
> use app.path to get the location of the exe and put the file in the
> same place .

That will bite you in the hiney with Winders Vista.  You will have to save
any file (flatfile, text, INI) to one of the Vista-allowed paths.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.