That works but even better this works.
+ Code Snippetdw# = getdevicewidth()
dh# = getdeviceheight()
SetDisplayAspect(dw#/dh#)
It finally dawned on me that in SetDisplayAspect(dw#/dh#) I need to specify the data type at the end with the #. Passing the two values, SetDisplayAspect(dw/dh) gives me the incorrect results.
The DW and DH get converted to 0 when trying to specify them as what would be an Integer and when the divide operation occurs, I get a result of 0.
Don't take my code example as being better but really just confirming my thoughts.
Just need to remember my data types when I'm using them.