poSplash = .NULL. poSplash = NEWOBJECT('c40splash','c40baseforms.vcx', '', pcAppName, pcAppVersion, pcAppAuthor, pcAppCompany, pcAppCopyRight, pcAppTradeMark, pcAppLogo) IF VARTYPE(poSplash) = "O" pnSeconds = SECONDS() poSplash.SHOW() ENDIFThen when I am done setting up I call the procedure to shut it down ensuring the time elapsed is ok
* Close our splash screen by calling procedure at end of this module * and ensure that the screen is maximized and shown DO Shutdown_Splash_ScreenProcedure code is:
*============================================================================== * SHUTDOWN_SPLASH_SCREEN * * This will close out the spalsh screen *============================================================================== PROCEDURE Shutdown_Splash_Screen * Release our splash screen if it is time IF VARTYPE(poSplash) = "O" IF SECONDS() INKEY(pnAppDelay-(SECONDS()-pnSeconds),"MH") ENDIF poSplash.RELEASE() poSplash = .NULL. _SCREEN.WINDOWSTATE = 2 _SCREEN.VISIBLE = .T. ENDIF RELEASE poSplash, pnSeconds>I've created a few classes for some common tasks within a database application (User Information, System Configuration, User Management, About Box, etc). I have a little problem with my splash screen (that is a class too), it is not showing up. Here is the sequence of steps I make in the system startup: