Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=blue]IF ADIR(laTemp,SYS(5) ;
+ ADDBS(SYS(2003)) ;
+ [tables\errorlog.dbf]) = 1
TRY
USE tables\errorlog IN 0 EXCLUSIVE
CATCH
MESSAGEBOX( ;
[Application appears to be either in use or] ;
+ CHR(13) ;
+ [maybe still shutting down from the last session.] ;
+ CHR(13) ;
+ CHR(13) ;
+ [Please try again in a few moments] ,;
16 ,;
[Application in use] ,;
3000)
QUIT
ENDTRY
ELSE
MESSAGEBOX( ;
[The ErrorLog table is missing from your application] ;
+ CHR(13) ;
+ CHR(13) ;
+ [Please reinstall the application] ,;
16 ,;
[ErrorLog table missing] ,;
3000)
QUIT
ENDIF[/color]
LPARAMETERS tcFormName
LOCAL loForm, llOpen
tcFormName = UPPER(tcFormName)
llOpen = .F.
FOR EACH loForm IN _SCREEN.Forms
IF UPPER(loForm.Name) == tcFormName
* This is the one we want
loForm.Show
llOpen = .T.
EXIT
ENDIF
ENDFOR
IF NOT llOpen
* Not yet open, so open it now
DO FORM (tcFormName)
ENDIF