Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: INI File Support Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: December 29 2003 at 20:57 | IP Logged Quote TonyNo

Is there a way to handle INI files, beyond using ph_readfile and pulling everything into one string and parsing it? Just asking before I do a lot of work!

Thanks - Tony

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: December 29 2003 at 21:53 | IP Logged Quote dhoward

Tony,

Not currently .

But, the good news is Ive just added two new functions: ph_getini and ph_setini that will do it for you .

They'll be in the next beta which should be available before the end of the week.

Another option would be to use the built in functions in VBScript for INI file processing and then run this script from PowerHome.

Dave.

 

Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: December 30 2003 at 08:45 | IP Logged Quote TonyNo

Sounds good. I was thinking of creating a macro that read an INI file to set up holidays for not waking me up on my days off! I bet we could also come up with a few other other uses for this.

Tony

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 19 2004 at 22:14 | IP Logged Quote dhoward

Tony,

Duhhhhh....I was updating the documentation for the next release and I already have INI functions.  The profilestring() function will read from an INI file and the undocumented setprofilestring() function will update INI files.  The parameters for the setprofilestring function are: setprofilestring("INI filename","section","parameter","value").

So Ive yanked the ph_getini and ph_setini functions .

Hope this helps,

Dave.

 

Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 20 2004 at 08:14 | IP Logged Quote TonyNo

Heh! I'll get started then!

Tony

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum