AutoWait1 Error
jjames
Posts: 2,908
Has anyone ever seen this one before?
The offending code is within an #IF_DEFINED. Happens under these circumstances:
(1) A structure's value is used
(2) A value (such as 50) is used
It compiles fine when an INTEGER variable is used, however the WAIT's value is executed as zero, but is displayed (in diagnostics) as the proper value.
Here's the code
Perhaps the 18 hours of programming is getting to me and I'm not seeing the issue clearly . . . time for sleep. Any ideas would be helpful!
ERROR: C:\Work Files\Files\AMX Projects\xxxxxxx\SystemFunctions.axi(830): C10550: Symbol [AutoWait1] undefined in symbol table [1017]
The offending code is within an #IF_DEFINED. Happens under these circumstances:
(1) A structure's value is used
(2) A value (such as 50) is used
It compiles fine when an INTEGER variable is used, however the WAIT's value is executed as zero, but is displayed (in diagnostics) as the proper value.
Here's the code
IF(Display[TvNumber].Power == 0) { SWITCH(TvNumber) { #IF_DEFINED vdvTV_1 CASE 1: { SEND_COMMAND Display[ 1].Device,"'CASE 1'" SEND_COMMAND Display[ 1].Device,"'WAIT TIME = ',ITOA(TV_PODT[1])"; [COLOR=RED]WAIT TV_PODT[1] // This compiles fine, but it's as if WAIT is 0 when actually executed in test; using Display[1].PODT or a straight value such as 50 causes the error.[/COLOR] { ON[Display[ 1].Power] SEND_COMMAND Display[ 1].Device,"'CASE 1 - POWER ON'" SEND_COMMAND Display[ 1].Device,"'SP',Display[ 1].Input[Display[ 1].Source]"; } } #END_IF etc....
Perhaps the 18 hours of programming is getting to me and I'm not seeing the issue clearly . . . time for sleep. Any ideas would be helpful!
0
Comments
Remember that statements that start with # are evaluated at compile time not at run time, so I'm guessing that vdvTV_1 is not defined.
vdvTV_1 is definitely defined because the error occurs, if it weren't, there'd be no compiler error - right?