On 5/3/14, 2:23 PM, Dar Scott wrote:
The text property is special in that it can be used as the value of the object. 
 Most notably we can do this:

    put “All is good.” into field “Status”

We don’t have to write this:

    set the text of field “Status” to “All is good.”

So, I was thinking something like this:

    if button “Quiet” is not “checked” the…
    if button “option 4” is not “selected” then…

One problem is that buttons already have a text property, and some people use it to store things. Combo and option buttons use it for their content lists, but you can put whatever you want into any button. This works fine in a push button or any other type:

   put "I am a storage container" into button 1
   put btn 1  <-- "I am a storage container"

Back in the HC days, that was one of the few storage options we had. It's far less common in LC because we have custom properties, but the text option is still there.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to