That would work, but again I am trying to bail if my parameters are out of bounds.
Bob S > On Jun 22, 2018, at 11:01 , Niggemann, Bernd via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi Bob, > > how about: > > .... > if pOffset is empty then put 0 into pOffset > ---------------------- > if pOffset is not strictly an integer then put pOffset div 1 into pOffset -- > <----- > ---------------------- > catch theError > .... > > if pOffset is an integer nothing happens, if it is a floating point number > div will turn it into an integer, if it is a string then it will throw an > error. > > Kind regards > Bernd _______________________________________________ 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