Jump to content

Greater than error


TripScott
 Share

Go to solution Solved by Jos,

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...