Jump to content
Sign in to follow this  
TripScott

Greater than error

Recommended Posts

TripScott

What am I doing wrong here? I am just reading the numbers in the height and width fields in a dialog box. When it figures out which is larger it puts either a 4 or a 6 in the height field.

Under the code here is the debug answers I am getting. Obviously it should be true, not false.

$iWidth = 0
$iHeight = 0

...

send("!{w}")    ; width size
send("^c")
$iWidth=ClipGet()

send("!{h}")    ; height size
send("^c")
$iHeight=ClipGet()

if $iWidth > $iHeight  then

@@ Debug(69) : $iWidth = 10910

@@ Debug(73) : $iHeight = 8821

False

 

Thanks for your help

Kristine

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×