Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Startup program with application framework
Message
De
01/01/2006 18:24:16
 
 
À
01/01/2006 18:09:01
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01081950
Message ID:
01082363
Vues:
7
>Sorry, Michel ... I missed where you said you had already checked for the existence of oStartupEventArgs. Checking the Count of the CommandLine would have been my next suggestion. <g> Glad you got it working. =)

Yes, I finally adjusted the framework to have something like this:
Public Class App
    Public Shared oStartupEventArgs As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs
    Public Shared aStartupEventArgs(10) As String

    ' Initialize
    Public Shared Function Initialize() As Boolean

                ' Command line parameters
                If Framework.App.oStartupEventArgs.CommandLine.Count > 0 Then
                    For lnCounter = 1 To Framework.App.oStartupEventArgs.CommandLine.Count
                        aStartupEventArgs(lnCounter) = Framework.App.oStartupEventArgs.CommandLine.Item(lnCounter - 1)
                    Next
                End If

    End Function

End Class
So, I can reference it from the application such as:
        ' See if we are in auto mode
        If UCase(Framework.App.aStartupEventArgs(1)) = "/AUTO" Then
            StartConversion()
        End If
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform