LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to write comments inside the Ini file

0 Kudos
Message 1 of 7
(12,989 Views)
There is plenty of posts about this topic. Just use search! Among others: here or here

Message Edited by ceties on 07-25-2008 06:36 AM
LV 2011, Win7
0 Kudos
Message 2 of 7
(12,984 Views)
Hi!
   Just use ";" (semicolon) at the beginning, for standard ini files.

graziano
0 Kudos
Message 3 of 7
(12,975 Views)
I've seen many approaches (from others) in commenting the ini file.
 
Some examples include...
 
Comment header: 
[COMMENT] 
[COMMENT_END]
 
Symbols:
double slash      //
semi column     ;        even double semi column   ;;
double pound    ##
 
I haven't seen  /*  but why not?
 
As long as your code is set to handle it.  TO detect the start and end of the comments.
 
R
 
0 Kudos
Message 4 of 7
(12,946 Views)
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:

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 comment
Key1=3.6

After:
[SECT1]
; This is a comment=""
Key1=3.54
;Comment=""



Message Edited by smercurio_fc on 07-25-2008 09:11 AM
Message 5 of 7
(12,936 Views)

OOpps... I didn't catch that one.

Thanks for the clarification, smercurio.

R

0 Kudos
Message 6 of 7
(12,926 Views)
thanks all of you for making this clear...
0 Kudos
Message 7 of 7
(12,883 Views)