Yann Chemin wrote:
> OK, if I get it right,
> 
> input->required=YES
> is the same as:
> input->guisection=_("Required")
> 
> therefore the second line is useless.

no, they are not at all the same. the second line is useless all on its
own, all it does is put that option in a tab of some name, in this case
the programmer happened to call it "Required", but that name means
nothing to the parser.

input->required= is what is important for the parser.
input->guisection= just picks some tab name to use.


> In the same way, is the following identical too?
> 
> input->required=NO
> is it the same as below?
> input->guisection=_("Optional")

again, no. they are two totally separate things.


Hamish




      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to