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





Description

Triggered immediately before a new scenario is loaded.

Syntax

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

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

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

[Java]
public  onBeforeLoadScenario(
String Scenario
);

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

Parameters

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

Example

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

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1