Graphics Mode or Data Mode

Is there a function that indicates if a form is in Graphics Mode or Data Mode?

The function info(“windowtype”) will return the numeric value 6, if the form in question is in Graphics Mode.

Excellent, exactly what I needed. Thank you!