Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Viewing a passed param
Message
From
17/04/2013 10:10:58
 
 
To
17/04/2013 03:21:22
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01571175
Message ID:
01571212
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform