Saving the name of option button in a Save File
Peter M. Brigham, MD
pmbrig at gmail.com
Thu Sep 1 22:20:45 EDT 2011
Sorry -- not combobox, option menu, the same thing applies, use the label to get the current choice.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Sep 1, 2011, at 8:53 PM, Charles Szasz wrote:
> I am using the following script to save fields, checkbox and option buttons. Saving the content of fields works but I have been unsuccessful in saving the names of the option buttons, which are school names.
>
> FUNCTION gatherData pCard
> lock screen
> lock messages
> push card
> go to card pCard
>
> put empty into tData
> REPEAT WITH f = 1 to the number of fields
> put field f into fData
> replace ":" WITH "!" in fData
> put the short name of field f & ":" & fData & cr after tData
> -- END IF
> END repeat
>
> REPEAT WITH b = 1 to the number of buttons
> IF the style of button b = "checkbox" OR the style of button b = "option"
> THEN
> put the short name of button b & ":" & the hilite of button b & cr after tData
> END IF
> END repeat
>
> pop card
> return tData
> END gatherData
>
>
> Charles Szasz
> cszasz at mac.com
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list