Jump to content

Visual Basic 6


AC130
 Share

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!

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...