Align baselines of 2 fields

Ralph DiMola rdimola at
Thu Jun 21 17:46:41 EDT 2018

Option B. I find it easier to see what's going on:

If pOffset is a number then
 put round(pOffset) into pOffset
 return "Invalid parameter passed."
End if	

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf
Of Bob Sneidar via use-livecode
Sent: Thursday, June 21, 2018 5:24 PM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Align baselines of 2 fields

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 at> 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 at> 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
>> Or alternately, "if pOffset is a number..."

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list