Jump to content
Sign in to follow this  
AC130

Visual Basic 6

Recommended Posts

How to use INIWRITE in VB6?

Save1 = cAutoit.IniWrite(CommonDialog1, "Configuration", "", Text1.Text)

That doesn't work. It doesn't save anything.

I'm trying to get it to save my input boxes. Text1.Text, Text2.Text, and combo boxes if possible.

Thanks!

Share this post


Link to post
Share on other sites

Of course it does not save anything...

Now it does:

Dim cAutoIt As New AutoItX3
Dim sFile
sFile = "c:\file.ini"
Open sFile For Output As #1
Close #1
cAutoIt.IniWrite sFile, "Configuration", "SomeKey", Text1.Text

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...