Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Viewing a passed param
Message
De
17/04/2013 10:10:58
 
 
À
17/04/2013 03:21:22
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01571175
Message ID:
01571212
Vues:
30
>Hi. I pass a parameter with my .exe. Once inside the vb6 code, I address it as "command"., How can I view 'command' at select points in the execution of my code?
>
>Thanks, Randy

Eric has shown how to get the command line args but it looks as if you are already that far. Something like this ?:
Class Program
	Public Shared command As String

	Private Shared Sub Main(args As String())
		command = args(0)
	End Sub
End Class


Public Class SomeOtherClass
	Private theCommandWas As String = Program.command
End Class
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform