OraFormsCloseWindow Function

Action

Closes the specified window.

Include file

OraForms.bdh

Syntax

OraFormsCloseWindow( in sName : string ) : boolean;

Return value

  • true if successful
  • false otherwise
Parameter Description
sName The window's unique name

Example

dcltrans
  transaction TMain
  var 
  begin 
    OraFormsSetPoint( "INITIAL_SCALE_INFO", 8,  20); 
    OraFormsSetBoolean( "WINSYS_REQUIREDVA_LIST",  false); 
    OraFormsSetString( "DEFAULT_LOCAL_TZ", "Europe/Berlin"); 
    OraFormsConnect( "server module=iorganizer.fmx userid=iorg/iorg@ORCL_server sso_userid= usesdi=yes record=names"); 
    OraFormsSetFocus( "LOGIN_PB_ENTER_0");
    // Enter OraFormsButtonPress( "LOGIN_PB_ENTER_0");  
    //Enter 
    // Incorrect Login Information. Do you want to register? 
    OraFormsMessageBoxButton( "Incorrect Login", ORA_ALERT_NO); 
    OraFormsCloseWindow( "Oracle iOrganizer"); 
  end TMain;