Results 1 to 9 of 9

Thread: How to know if code has been Compiled? (Solved)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Resolved 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:
    1. #Const DebugVer = True
    2.  
    3.  #If DebugVer Then
    4.     MsgBox "This is the Debug Version Please Report any Messages"
    5.  #Else
    6.     MsgBox "This is the Final Version :)"
    7.  #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
  •  



Click Here to Expand Forum to Full Width