Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 2 > Newsgroup comp.lang.labview

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2008, 11:40 AM
Alagar
Guest
 
Posts: n/a
Default is it possible to write comments inside the Ini file

is it possible to write comments inside the Ini file
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-25-2008, 11:40 AM
ceties
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

There is plenty of posts about this topic. Just use search! Among others: <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;thread.id=5881&amp;view=b y_date_ascending&amp;page=2" target="_blank">here </a>or <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=153416&amp;que ry.id=109547#M153416" target="_blank">here</a> Message Edited by ceties on 07-25-2008 06:36 AM
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 12:10 PM
Graziano
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

Hi! &nbsp;&nbsp; Just use ";" (semicolon) at the beginning, for standard ini files.graziano
Reply With Quote
  #4 (permalink)  
Old 07-25-2008, 02:10 PM
JoeLabView
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

I've seen many approaches (from others) in commenting the ini file.
&nbsp;
Some examples include...
&nbsp;
Comment header:&nbsp;
[COMMENT]&nbsp;
[COMMENT_END]
&nbsp;
Symbols:
double slash&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //
semi column&nbsp;&nbsp;&nbsp;&nbsp; ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; even double semi column&nbsp;&nbsp; ;;
double pound&nbsp;&nbsp;&nbsp; ##
&nbsp;
I haven't seen&nbsp; /*&nbsp; but why not?
&nbsp;
As long as your code is set to handle it.&nbsp; TO detect the start and end of the comments.
&nbsp;
R
&nbsp;
Reply With Quote
  #5 (permalink)  
Old 07-25-2008, 02:40 PM
smercurio_fc
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

I think the user is asking whether they can write comments using the config file functions. As alluded to by Graziano, you need to use the Write Key function, and set the key name to have a semicolon at the beginning: <img src="http://forums.ni.com/attachments/ni/170/344022/1/Example_VI_BD6.png"> This is the only way you can do it with the config file functions. However, as of LabVIEW 8.2 the config file functions STILL (!!) have a bug in them that messes up already existing comments. This is what will happen:Before:[SECT1]; This is a commentKey1=3.6After:[SECT1]; This is a comment=""Key1=3.54;Comment=""Message Edited by smercurio_fc on 07-25-2008 09:11 AM


Example_VI_BD6.png:
http://forums.ni.com/attachments/ni/...ple_VI_BD6.png
Reply With Quote
  #6 (permalink)  
Old 07-25-2008, 02:40 PM
JoeLabView
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

OOpps... I didn't catch that one.
Thanks for the clarification, smercurio.
R
Reply With Quote
  #7 (permalink)  
Old 07-28-2008, 05:10 AM
Alagar
Guest
 
Posts: n/a
Default Re: is it possible to write comments inside the Ini file

thanks all of you for making this clear...
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Nest a macro inside a %do loop based on an outside file of toby dunn Newsgroup comp.soft-sys.sas 0 08-08-2007 01:44 PM
Re: Nest a macro inside a %do loop based on an outside file of nospam@HOWLES.COM (Howard Schreier Newsgroup comp.soft-sys.sas 0 08-08-2007 02:35 AM
Re: PC SAS Transport file is bad Michael Raithel Newsgroup comp.soft-sys.sas 0 05-09-2006 04:12 PM
Re: how to write multiple SAS tables into 1 xml file Wensui Liu Newsgroup comp.soft-sys.sas 0 04-04-2006 04:14 PM
Re: how to write multiple SAS tables into 1 xml file Randy Herbison Newsgroup comp.soft-sys.sas 0 04-04-2006 04:07 PM



All times are GMT. The time now is 03:23 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.