Maybe this is common knowledge but it wasn't to me, so if it ever happens to you, this might help.
I created an app where the Autoexec loads the startup form. I couldnt set this via File/Database properties, because the startup form is conditional depending on the screen resolution (a different form for each resolution).
Now while fiddling around with codes I added an inline xbasic to:
Hide control panel,
Then hide the windowbar toolbar,
Then I commented out the line to load the startup forms. Take my word for it, that combination will lock you out of your app in the most horrifying way. When it loads, all you see is "NOTHING", nothing at all. After the login dialogue, then visually, nothing changes. Using the method in the help that describes how to get back in after locking yourself out DOESN'T help, that's because the startup form wasn't set via File/Database properties.
With 3 hours to go before I had to deliver the app to the client, i was running around pulling my hair out, nothing like this could be found in the help or the message board. After clicking on links and buttons in Alpha I never even noticed before, I went looking for the definitions of the file types. i started to remove files from the project folder one at a time (in hopes of removing the "Autoexec" since it was this script that was hiding the windowbar toolbar and the control panel), while I load the app repeatedly. After removing the ".ALM" file the project loaded prefectly, bypassing the login dialogue and showing the control panel. The only thing is, I couldn't edit the Autoexec until I replaced the .ALM file while keeping the project open in Alpha. Then I was able to remove the code to hide the windowbar toolbar and the control panel, then proceed.
Hopefully this will save you some headache one day if this ever happens to you. :)
I created an app where the Autoexec loads the startup form. I couldnt set this via File/Database properties, because the startup form is conditional depending on the screen resolution (a different form for each resolution).
Now while fiddling around with codes I added an inline xbasic to:
Hide control panel,
Then hide the windowbar toolbar,
Then I commented out the line to load the startup forms. Take my word for it, that combination will lock you out of your app in the most horrifying way. When it loads, all you see is "NOTHING", nothing at all. After the login dialogue, then visually, nothing changes. Using the method in the help that describes how to get back in after locking yourself out DOESN'T help, that's because the startup form wasn't set via File/Database properties.
With 3 hours to go before I had to deliver the app to the client, i was running around pulling my hair out, nothing like this could be found in the help or the message board. After clicking on links and buttons in Alpha I never even noticed before, I went looking for the definitions of the file types. i started to remove files from the project folder one at a time (in hopes of removing the "Autoexec" since it was this script that was hiding the windowbar toolbar and the control panel), while I load the app repeatedly. After removing the ".ALM" file the project loaded prefectly, bypassing the login dialogue and showing the control panel. The only thing is, I couldn't edit the Autoexec until I replaced the .ALM file while keeping the project open in Alpha. Then I was able to remove the code to hide the windowbar toolbar and the control panel, then proceed.
Hopefully this will save you some headache one day if this ever happens to you. :)
Comment