Actually that made me think, someone might try to pass a floating point number, so put pOffset div 1 into pOffset is a better test because it will convert pOffset to an integer.
Bob S > On Jun 21, 2018, at 14:18 , Bob Sneidar via use-livecode > <use-livecode@lists.runrev.com> wrote: > > But that won't throw an error in my try catch statement. :-) > > Bob S > > >> On Jun 21, 2018, at 13:23 , J. Landman Gay via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> On 6/21/18 2:58 PM, Bob Sneidar via use-livecode wrote: >>> Also, I check that pOffset is a number by adding 0 to it in a try/catch >>> statement. >> >> Or alternately, "if pOffset is a number..." _______________________________________________ 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