INI Engine - Official Forum Thread

Are you developing tools to extend the LiveCode environment? This is the place to talk about the nuts and bolts of extending our nuts and bolts. If you want to use a LiveCode or third party Environment extension, visit the Using Evironment Extensions forum.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

INI Engine - Official Forum Thread

Post by shadowslash » Sun Nov 08, 2009 2:18 pm

This will be the official forum thread for the INI Engine that I made.

Features:
Read and write INI keys to and from INI files under specified sections.
Get the list of all the sections in an INI file.
Get the number of sections in an INI file.
Get the list of all the keys of a section in an INI file.
Get the number of keys of a section in an INI file.
Advanced detection for comments in an INI file so you're sure that comments aren't misunderstood by your program.

You can get all the versions at:
http://www.mediafire.com/?sharekey=e048 ... f8d7d408e9

Latest Version: 1.02 [Click to Download]

Code: Select all

CHANGELOG

v1.02
- Added more complexity in checking for valid keys.
- Added comment detection for ieAllKeys.
- Added comment detection for ieAllSections.
- Modified the text info and removed the title bar buttons. (You can close INI Engine using the "Exit" link at the field control.)
- [Bug:1] In the "ieAllKeys" function, if a section was preceeded by a commented section which has the same name, the keys of that section won't be detected.
    Ex:
          ;[english]           <- This commented item preceeds a same section.
          [english]
          key1=value1          <- The keys starting here til the end of the
          key2=value2             "english" section won't be detected.
          key3=value3

          ;Language -- PH      <- This commented item however, is NOT the same
          [tagalog]               as the section below so the keys from this
          key1=value1             section would still be read as what the
          key2=value2             "ieAllKeys" function is supposed to do.
          key3=value3

v1.01
- Redid the field control in the plugin's interface.
- Added the "ieAllSections" function that returns a list or the number of all valid sections in an INI file.
- Added TODO.txt to the package.
- Added the "ieAllKeys" function that returns a list or the number of all valid keys of a section in an INI file.

v1.00
- Primary release.
- Basic features.
- Available only through the Revolution Forums (http://forums.runrev.com/).

Code: Select all

TODO LIST

- = Not yet done.
+ = Done. (Stable)
* = Done but needs testing first. (Unstable)

---------------------------------------------------

[-] Auto start using option for the plugin.
[-] Optimize scripts.
[-] Add comment detection for the "ieRead" function.
[-] Add comment detection for the "ieWrite" function.

v1.02
[+] Add more complexity to checking for valid keys.
[*] Add comment detection for the "ieAllKeys" function.
[+] Add comment detection capabilities for the "ieAllSections" function.
[+] Fix ieAllKeys script. (Got sleepy last night so it's not yet finished.)

v1.01
[+] Add the "ieAllKeys" function which does pretty much what the "ieAllSections" function except for the fact that this one is for keys.
[+] Add an INI file structure example to the field control of the main card of the stack.
Please post your comments, suggestions, experience, etc. related to INI Engine to this thread. Any comments to improve INI Engine is greatly appreciated.
Last edited by shadowslash on Tue Nov 10, 2009 11:31 am, edited 5 times in total.
Parañaque, Philippines
Image
Image

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Sun Nov 08, 2009 2:26 pm

Hi shadowslash. What exactly is it?

Cheers,

Malte

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Post by shadowslash » Sun Nov 08, 2009 2:33 pm

It's a PlugIn/AddOn or whatever you may want to call it, for Revolution, I noticed that INI file support is not really native in Revolution so I attempted to make a basic solution for programmers who prefer to save their program's settings into an INI file instead of other means. It has the basic functions namely reading and writing to an INI key at a specified section in a specified INI file.
Parañaque, Philippines
Image
Image

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Nov 08, 2009 3:14 pm

Dear shadowslash,

This might or might not be useful:

http://runrev.info/INI%20file%20information.htm

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Post by shadowslash » Sun Nov 08, 2009 3:22 pm

Hi Mark,

Well I'll be danged! Image Didn't know that one existed! Well anywho, this AddOn is just a little project of mine because I didn't knew one existed... Image Thanks for pointing that topic to me, maybe I can even improve INI Engine by adding more functions or commands with this info... Image
Parañaque, Philippines
Image
Image

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Post by shadowslash » Mon Nov 09, 2009 12:01 pm

just updated INI Engine to v1.01 Image Please test it out and tell me if something isn't working... Image
Parañaque, Philippines
Image
Image

jackro
Posts: 1
Joined: Tue Nov 10, 2009 9:56 am

Post by jackro » Tue Nov 10, 2009 10:00 am

shadowslash wrote:just updated INI Engine to v1.01 Image Please test it out and tell me if something isn't working... Image
found some bugs... i already emailed you w/ those that i found all in all it works quite without flaw so far except for those infos... also it doesn't find comments? :?: :D

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Post by shadowslash » Tue Nov 10, 2009 11:33 am

Hi jackro,

Please check out the latest version if you'd happen to find any more problems (aside from the one stated of course). Thanks for the valuable info.. Image
Parañaque, Philippines
Image
Image

Post Reply

Return to “Making IDE Plugins”