Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application and form already opened
Message
From
15/11/2008 07:38:41
 
 
To
15/11/2008 07:37:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361879
Message ID:
01362068
Views:
10
* Na primeira linha do programa inicial, o "Medical - Gestão de Clinicas Médicas" deve ser o teu _screen.caption
If Em_Execucao()
MESSAGEBOX("O programa já esta em Execução - Veja a Barra de Ferramentas", ;
16+0+0, "Arranque!!!")
Return
ENDIF

*********************
function Em_Execucao
Local lnWinHandle
Declare Integer FindWindow In Win32API;
Integer, String
lnWinHandle=FindWindow(0,"Medical - Gestão de Clinicas Médicas")
If lnWinHandle # 0
Return .T.
Else
Return .F.
EndIf
EndFunc
Previous
Reply
Map
View

Click here to load this message in the networking platform