Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

compile error cs0136

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    compile error cs0136

    can someone explain to me this error? i am trying to use a boolean indicator that i can change as i run through my program but i seem to have this error which i think means that you can't change this variable?

    basically i just want to:

    at start of new day
    {condition 1 = true and set var = false}

    if var = false
    {do this and set var = true}**

    And i seem to get an error in ** saying u can't change it?

    #2
    Don't worry, i think i know where i went wrong ... i didn't realise

    bool var = false

    is a declaration and not the same as

    var = false

    Comment


      #3
      True, thanks for reporting back anothertoy!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      229 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      148 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      160 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      240 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      198 views
      0 likes
      Last Post CarlTrading  
      Working...
      X