|
-
Jul 7th, 2004, 10:05 PM
#1
Thread Starter
Frenzied Member
How to know if code has been Compiled? (Solved)
Alright... I have seen this in a couple of sites as a tip which tells you if you are on the VB IDE or you are running the EXE the IDE made.
Here is the code for that:
VB Code:
#Const DebugVer = True
#If DebugVer Then
MsgBox "This is the Debug Version Please Report any Messages"
#Else
MsgBox "This is the Final Version :)"
#End If
Now... Why doesn't this code work for me?
I tried running it on a Form and I would always get "This is the Debug Version..." (I mean, after compiling and running the file.exe, of course), then I tried it on a Module and still the same result...
What am I doing wrong?
Here are the two locations where I found this "tip":
First Source Second Source
Last edited by Tec-Nico; Oct 3rd, 2004 at 01:56 PM.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|