Auto-Quit upon incorrect un/pw or "cancel" pressed for EDS
I have a database that accesses two external data sources. Upon launch it prompts for the username and password for these sources. Everything works swimmingly if they are entered correctly. The trouble is that when the incorrect un/pw is entered a big ugly default FM message comes up. WORSE: when cancel is pressed my startup script runs and gives all kinds of errors about unable to connect to the data. I would like to know if any of the following is possible:
- Determining if "cancel" was pressed and quitting the program. Something similar to a get(lastmessagechoice).
- Accessing EDS's with custom layout. Something along the lines of: go to layout, enter global un/pw, press okay, connect to EDS1 and EDS2.
- Displaying custom messages using prettier layouts to inform of un/pw errors.
I am using FM Pro Advanced 13. Both EDS's are also in FM13. Thanks in advance.