Devin, Thanks! I found it but I had to limit numbers with decimals. The numbers only script does not do that.
Charles Szasz csz...@mac.com On Nov 29, 2010, at 5:39 PM, Devin Asay [via Runtime Revolution] wrote: > Charles, > > Did you see my earlier post? There are two examples in the LiveCode Resource > Center that describe exactly how to do this. > > See the LiveCode Resource Center (Help menu > Resource Center). Then look > under Sample Scripts > Text. There are two sections there that will help you, > one on limiting the number of characters and one on limiting input to only > numbers. > > Regards, > > Devin > > On Nov 29, 2010, at 3:27 PM, charles61 wrote: > > > > > Mike, > > > > I have not thought of using "not in". I did not use "1234567890" because it > > does not limit decimals. > > > > Charles Szasz > > [hidden email] > > > > > > > > > > On Nov 29, 2010, at 5:22 PM, Mike Bonner [via Runtime Revolution] wrote: > > > >> Is there a reason to use 'not in "1234567890"' rather than 'is a number' > >> just curious to know. > >> > >> On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <[hidden email]> wrote: > >> > >>> > >>> Inside of the field script put something like this: > >>> > >>> on keyDown pKey > >>> > >>> put the number of chars of me into sCount > >>> > >>> if sCount < 3 then > >>> > >>> if pKey is not in "1234567890" then > >>> > >>> pass keyDown > >>> > >>> end if > >>> > >>> end if > >>> end keyDown > >>> > >>> This should make it so that everytime a key is pressed in that field it > >>> counts how many characters it has, if it is less than 3 it checks to see > >>> if > >>> it is a number or in the allowed list, if so it passes that key. > >>> > >>> -- > >>> View this message in context: > >>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.html > >>> Sent from the Revolution - User mailing list archive at Nabble.com. > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> [hidden email] > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> [hidden email] > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> View message @ > >> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064541.html > >> To unsubscribe from Limiting data entry in fields, click here. > > > > > > -- > > View this message in context: > > http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064557.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > > use-livecode mailing list > > [hidden email] > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > View message @ > http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064579.html > To unsubscribe from Limiting data entry in fields, click here. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064589.html Sent from the Revolution - User mailing list archive at Nabble.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