SAM_AppStartup is sent to an application before any of the application's windows have been created, including those which are automatically created at run time. You can process SAM_AppStartup and perform initialization tasks such as displaying a login dialog box that authorizes access to a database. This is the first message an application receives and it is sent only to the Application Actions section of the outline. Message Variables hWndForm None. hWndItem None. wParam None. IParam None. Example Application Actions On SAM_AppStartup Set SqlDatabase = "CLIENTS" Set SqlUser = "SYSADM" Set SqlPassword = "SYSADM" When SqlError Call SalMessageBox ( "Could not connect to database", "Customer List", MB_Ok ) Return FALSE If NOT SqlConnect ( hSql ) Call SalQuit

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int SAM_AppStartup

See Also