Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: What delimiter to start a Comment in INI File?
PostPosted: April 17th, 2010, 5:00 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Opus seems to not recognize ';' and '#' characters as delimiter to start a Comment in an INI File. I am actually happy that I can use a semi-colon as part of an INI value.

However, does anyone know what counts as a comment then?

TIA

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Re: What delimiter to start a Comment in INI File?
PostPosted: April 17th, 2010, 5:35 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Use the script Luke.

if (myINIRead.charAt(0) == ";")
{
ignoreComment()
} else
{
processLine()
}

If Opus doesn't respond to ';' and it's not in the help, then it seems fair to assume that Opus INI doesn't support comments but given the Opus Force, it's not really necessary :-)

Mack Vader

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: What delimiter to start a Comment in INI File?
PostPosted: April 17th, 2010, 5:54 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
then it seems fair to assume that Opus INI doesn't support comments
Thanks Mack. Good answer... or rather, one I like. Will not need comments, but didn't want unexpected results.

Quote:
Use the script Luke.
if ( conditiontest ){
try_BeBrave() }
else {
run() }

"Remember, ...there is no 'try'" --Yoda :D


Thx again for the idea: scriptsword to manually control any lines. Good to have in the back pocket.

Cheers.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Re: What delimiter to start a Comment in INI File?
PostPosted: April 17th, 2010, 6:00 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
try to catch me would...

Master Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group