Why is the IDE ignoring my variable? I think the screenshots explains what I'm trying to do, but let me know if you need more info. Tested on XE2 and XE3.

Comments

  1. Magno Machado Evandro da Silva Amparo Carlos Fim  Do you know something about it?

    ReplyDelete
  2. Because you declare that variable in the debugger environment. Place it into the global environment variables under Tools - Options. There are no project specific environment variables.

    ReplyDelete
  3. You have debug build and release build. Each one with its own set of variables. And there is a 3rd set of variables for both debug and release builds together.
    --
    Francois Piette
    Embarcadero MVP

    ReplyDelete
  4. The debugger environment is used when you run your program from inside the IDE.

    ReplyDelete
  5. To clarify: it is seen by your application and not by the IDE.

    ReplyDelete

Post a Comment