Home AMX User Forum AMX Technical Discussion

Structure Data Retreval problem

I am having some problems using data in a structure as part of a DO_PUSH command I am just getting nothing happening. The code giving problems is:

Button_Event [vdvTPRoomControl,41]
{
Push:
{
{bob = (Rooms[nCurRoomControl].nSwitcher_Input)}
{do_push(dvXiVAPanel_01,(Rooms[nCurRoomControl].nSwitcher_Input+29))}
}
}

I added the bob = .... line just to try and see what value i was getting for bob in the debug window and I am getting nothing. If I pull the structure into the debug pane I can see figures I would expect under nSwitcher_Input and also figures I would expect for nCurroomControl. Am I missing somthing?

Comments

  • yuriyuri Posts: 861
    what value does nCurRoomControl have?
  • Sorry.. a bit of sleep and some more coffee and I have seen my error. I was addressing the wrong TP so was not getting the results expected!
Sign In or Register to comment.