Indirect GC Refernce in the Number Field


18:24 @Ens_HA: hi... this little example demonstrates something that Kent in Australia asked for in the class Wed. He wanted the number fields for the statements to be a dynamic number that could be set by a GV so if the Number field has a [#] format than that is a GV look up to get the number.

18:25 @Ens_HA: line A write the value 10 to [1]

18:26 @Ens_HA: line B does a test of reading [1] for Value and comparing it to the value looked up in the number field [1] instead of the number in the number field

18:26 @Ens_HA: if the field had 1 instead of [1] then the result would be false

18:27 @Ens_HA: [1] is a indirect reference to the value in GV [1] instead of number 1

18:27 @Ens_HA: [1] hold a 10

18:27 @Ens_HA: so the test on B is TRUE

18:27 @Ens_HA: Value = 10

18:27 @Ens_HA: and [1] = 10

18:27 @Ens_HA: because Value is reading [1] and [1] is also reading [1]

 

18:27 tradinoncoffee: @Ens_HA, you know what I miss....where the panels show that value they are returning

8:28 @Ens_HA: toc, you can use the section message to show some values, and you can use the variable quote page to show values - just do not have room on this form to show 10 more values. And you can use the Show Values for the study to show the 10 values on the left side of chart