STK X Send comments on this topic.
OnBeforeNewScenario Event (AgSTKXApplication)
See Also  Example
Scenario
Full path to the scenario file (.sc).
Windows






Windows & Linux

Description

Triggered immediately before a new scenario is created.

Syntax

[Visual Basic .NET]
Public Event OnBeforeNewScenario( _
   ByVal Scenario As String _
)

[C#]
public void OnBeforeNewScenario(
string Scenario
);

[Managed C++]
public: void OnBeforeNewScenario(
String __gc ^ Scenario
);

[Java]
public  onBeforeNewScenario(
String Scenario
);

[Unmanaged C++]
public: HRESULT OnBeforeNewScenario(
BSTR Scenario
);

Parameters

Scenario
Full path to the scenario file (.sc).

Example

[Visual Basic .NET] Copy Code
Private Sub stkxApp_OnBeforeNewScenario(ByVal Scenario As String)
                Handles stkxApp.OnBeforeNewScenario
    MessageBox.Show("STK X - Scenario is about to be loaded: " & Scenario)
End Sub

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.2