Can one permanentaly change a text field's case to capitals?

Sarah Reichelt sarah.reichelt at gmail.com
Sun Jan 29 22:28:57 EST 2006


On 1/30/06, Stgoldberg at aol.com <Stgoldberg at aol.com> wrote:
> Does anyone know if there is a way to change the type in a field to capital
> letters and keep it that way as a property whenever one types into the field?
> I know that the "Text Formatting" option of a text field has a "Change Case"
> option to change the text into capital letters during development.   However,
> can one permanently set this as a field's property so that whenever one types
> in the field it will type as capital letters?   Thanks.
> Steve Goldberg

Put this into the script of the field:

on keyUp
   put toUpper(me) into me
   pass keyUp
end keyUp

Cheers,
Sarah



More information about the use-livecode mailing list