comment Posted March 28, 2011 Posted March 28, 2011 If $variable[7] contains "Alpha", and field Repetition contains the number 7 - what should be the result of = List ( $variable[Repetition] ; "Bravo" ) ??? List&RepeatingVariableBug.zip
Raybaudi Posted March 29, 2011 Posted March 29, 2011 Hi comment another ( strange ) workaround: List ( Evaluate ( Quote ( $v [ Table::Repetition ] ) ) ; Table::SecondValue ) or ( even more strange ): a ) List ( $v [ Evaluate ( Table::Repetition ) ] ; Table::SecondValue ) b ) List ( $v [ GetAsNumber ( Table::Repetition ) ] ; Table::SecondValue ) c ) List ( $v [ Table::Repetition + 0 ] ; Table::SecondValue )
comment Posted March 29, 2011 Author Posted March 29, 2011 Right. Obviously there is a problem with the order of evaluation when the expression is enclosed in List(). And now that I have put it this way, I have remembered this: http://fmforums.com/forum/topic/76502-getnthrecord-not-reliable/page__p__360070
Recommended Posts