Home AMX User Forum NetLinx Studio

Quick Question

I have the following functions:
Define_Function fnSourceVTPopulate(integer source,integer zone) {

    dLog("'populating source info to panel'")
    
    Send_Command aTP_Nav[zone],"'^TXT-',Itoa(2500+zone),',0,',sSources[source].Name"
}

Define_Function fnSourceVTClear(integer zone) {

    dLog("'clearing source info from panel'")
    
    Send_Command aTP_Nav[zone],"'^TXT-',Itoa(2500+zone),',0,',''"
}

example: fnSourceVTPopulate(Source1,Zone1)
fnSourceVTClear(Zone1)

The first address which would be 2501 works and populates fine but if i try it from any other zone it doesn't seem to populate or clear the text fields and ideas?

Comments

  • ondrovicondrovic Posts: 217
    Never mind I fixed it LOL major brain fart
  • DHawthorneDHawthorne Posts: 4,584
    I don't see a problem with the functions; my guess would be whatever is calling them is not passing the correct zone value. An easy way to test that would be to put the zone and source number in your dLog and see what that is recording. Keep in mind that variables are passed by reference, so if you have another function that uses those values, and it modifies them internally, the next time you need to use them they may be wrong.
Sign In or Register to comment.