Jump to content

Read and write ini file


Christina_

Recommended Posts

Hello,

 

Searching for read and write to ini file… and really don’t know how to begin…

Maybe someone can help me? :oops:

 

What I have :

1 x Button1 for Save

1 x Button2 for Delete or Reset values in ini file

6 x TextBox

The user need to fill in textboxes with numbers.

Can save the values he wants to keep in ini file.

For example the user let only TextBox2 empty, TextBox2 in ini file need to go empty when save.

User can delete/reset all values in ini file by Button2

 

Example value TextBox :

Textbox1 value = 10.23

Textbox2 value = 210.22

Textbox3 value = 18

TextBox…

 

Example Ini file :

TextBox1 (or another name)

10.23

 

TextBox2

210.22

 

TextBox3

18

 

I use OpenDCL but if need I can convert from DCL to OpenDCL

 

Thank you to read this,

Christina

Link to comment
Share on other sites

If you are open to using the DOSLib extensions, you can use the dos_getini / dos_setini functions.

 

Otherwise, you'll need to roll your own :)

 

Lee

 

 

Hello Lee Mac,

I were little skeptical by using extensions but if you mention it means i can trust it!

Thank you for the links :)

 

 

Christina

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...