Why the term, "value", is used for "label" control?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Why the term, "value", is used for "label" control?

Post by sudip »

Hello Roberto,

Since I started HMG, one very silly question is coming to my mind. Why you used the term "value" for "label" control, not "caption"? I guess there must be a reason for this. I think, what we called "caption" in other software tool (eg., VFP) is actually "value" of the "label" control. Am I right?

Thanks in advance.

With best regards.

Sudip
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Why the term, "value", is used for "label" control?

Post by Roberto Lopez »

sudip wrote:Hello Roberto,

Since I started HMG, one very silly question is coming to my mind. Why you used the term "value" for "label" control, not "caption"? I guess there must be a reason for this. I think, what we called "caption" in other software tool (eg., VFP) is actually "value" of the "label" control. Am I right?

Thanks in advance.

With best regards.

Sudip
I've took the idea of 'Value' from VFP. It signals the content for the most important property in a control, that usually comes from user interaction.

In my TODO list is the creation of synonyms for 'value' property for all controls using it.

In the case of Label, could be good that the synonymous be called 'Caption' of course.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Why the term, "value", is used for "label" control?

Post by sudip »

Hello Roberto,
Thanks a lot :)
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Why the term, "value", is used for "label" control?

Post by Rathinagiri »

Nice discussion here.

IMHO, I like the property "value" than "caption" for label. :) (I didn't use VFP and jumped from clipper to HMG)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Why the term, "value", is used for "label" control?

Post by sudip »

rathinagiri wrote:Nice discussion here.

IMHO, I like the property "value" than "caption" for label. :) (I didn't use VFP and jumped from clipper to HMG)
Rathi,
My path was Clipper -> VFP -> HMG. But, I also agree with you :) Because, IMHO, what we called "caption" in VFP is actually "value" of label. Eg., in Checkbox control, "value" and "caption" properties are different.

I haven't used VFP above 6. But, saw MS used "text" property instead of "caption" in VB.Net.

BTW, can we have default property for each control in future? In most cases it will be "value" :)
With best regards,
Sudip
Post Reply