Home AMX User Forum NetLinx Studio
Options

Local Variables & Watch Window

Hi all...

In a program, I have declared three local variables in this way
BUTTON_EVENT[DISCSELECT]
{
  PUSH:
  {
    LOCAL_VAR CHAR HRS CHAR MINS CHAR SECS
    //Some statments and math calcs
    WATCHMINS = MINS
  }
}

Now , in the watch window i can see HRS value but MINS and SECS ... NO! :(
Add for this i can see WATCHMINS which is a char global variable, and has the value of MINS... The code is working fine, but I wanna know why I can't see these two vars??

Comments

  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Mohy wrote:
    The code is working fine, but I wanna know why I can't see these two vars??
    Because MINS and SECS are not LOCAL_VARs, only HRS is.
  • Options
    SensivaSensiva Posts: 211
    So what are they?

    MINS and SECS... What are they?
    If neither the LOCAL_VAR nor the STACK_VAR keyword is specified, LOCAL_VAR is assumed.
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Mohy wrote:
    MINS and SECS... What are they?
    STACK_VARs
  • Options
    SensivaSensiva Posts: 211
    Yeah...

    And How is that?
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Mohy wrote:
    And How is that?
    The help file is wrong. Check out post #7 in this thread:
    http://www.amxforums.com/showthread.php?t=2737
  • Options
    SensivaSensiva Posts: 211
    Thank You

    You made my day... :)
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Mohy wrote:
    You made my day... :)
    That's good to hear, unless you are Dirty Harry. :)
  • Options
    SensivaSensiva Posts: 211
    Mmmmm......

    This take us to another question... and no need to start a new thread

    Who is Dirty Harry????????? :D
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Mohy wrote:
    Who is Dirty Harry????????? :D
    Ouch. I need to avoid prehistoric allusions.

    Dirty Harry = 1971 Clint Eastwood movie = famous line Go ahead make my day = attached.
Sign In or Register to comment.