MAIN IF ui.Interface.getFrontEndName() != "Console" THEN CLOSE WINDOW SCREEN END IFEND MAIN
IF message.getIndexOf("User limit exceeded",1) > 0 THEN LET message = "User Limit Exceeded"END IF
MAIN IF NOT license_check() THEN CALL FGL_WINMESSAGE(... no more licenses ....) EXIT PROGRAM 1 END IF ...