Limit number of chars in a field
Robert Presender
rpresender at earthlink.net
Mon Nov 10 19:39:32 EST 2003
Hi Glen,
I use the following which is probably not the only way one can go.
Select your own numbers.
put fld 1 into hold1
get the num of chars of hold1
if it >1 and it < 44 then
repeat until the number of chars of hold1 = 44
end repeat
else
if the num of chars of hold1 > 44 then
put char 1 to 44 of hold1 into hold1
end if
end if
On Monday, November 10, 2003, at 12:43 PM, Bojsza wrote
> I can't the field property that I can select for limiting the number of
> characters a user may enter into a field. I have fields that I want to
> allow up to but not exceeding 11 characters.
>
> I have opened other example scripts but they all allow more characters
> than what the field can show?
>
> Any suggestions?
>
> Thanks for all the support...
>
> regards,
>
> Glen
>
More information about the use-livecode
mailing list