1) When actived from a COMPILED exe file, it checks for any existing instances of the program. If one is found it activates the other one and aborts this instance. Therefore allowing only one copy to be active at any one time.
Label3
2) An extention of the above idea allow us to check to see if any support applications, such as the Calculator or Control Panel are active. If so it uses the existing copy from RAM memory. If none is found then it loads the application from the hard disk.
Command2
Call the Control Panel
Command1
Call the Calculator
Form_Click
@ Form_Load
Do_I_Exist
caption
Command2_Click
Bring_NOTEPAD_Up
Command1_Click
Bring_CALC
Bring_CALC_up
Bring_CONTROL_Up
Form_Load
Passes along the CAPTION to this form
to see if it already exists somewhere
on the DESKTOP. If so then the SUBROUTINE
passes FOCUS to the other copy and aborts
this instance of the program
SPECIAL NOTE: When creating applications that use this function make
sure that when you compile the program to an EXE that
you name the APPLICATION TITLE ( see MAKE EXE box) thef