Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I know if I'm in debug mode or execute mode? 1

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hi,

I want to send details into a log file only when I'm in debug mode, not when running the EXE.

How?

Thanks in advance!
 
You can also check by using the command arguments.

In VB go to ....
Project
Project Properties
Make
Then set the Command Line Arguments: to,say, DEV

In your code check status by ....
If Command() = "DEV" Then
MsgBox "In Dev"
Else
MsgBox "Running Live"
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top