FormClose | 
    Top Previous Next | 
| 
 Prototype 
 FormClose(intFormHandle) 
 Description 
 Closes the selected window. 
 Parameters 
 intFormHandle: integer number corresponding to the window handle. 
 Returned value 
 None. 
 Notes 
 If intFormHandle is 0 the function processes the application mail window. 
 Example 
 //It plays file audio in synchronous mode PlaySound('c:\sound\error.wav', False, False); 
 // Wait a second Wait (1000); 
 //It shows a post-it TheHint:=ShowHint (100, 100, 100, 50, 'Error!', -1); 
 //It closes post-it FormClose(TheHint); 
 //It plays file audio in asynchronous mode PlaySound('c:\sound\error.wav', True, False); 
 // Wait a second Wait (1000); 
 //It shows a post-it TheHint:=ShowHint (100, 100, 100, 50, 'Error!', -1); 
 //It plays file audio in synchronous mode in continuous PlaySound('c:\sound\error.wav', True, true); 
 //It closes post-it FormClose(TheHint); 
 // Wait a second Wait (1000); 
 //It shows a post-it TheHint:=ShowHint (100, 100, 100, 50, 'Error!', -1); 
 //It closes post-it FormClose(TheHint); 
 
  |