Question: loop over table

Just wondering how I do a loop over the contents of the table. I need both the index variable and the stored value associated with it.

This one apparently doesn't work.

F_vRk := table()

table( [ ] )

(1)

F_vRk["a"] := 1

1

(2)

F_vRk["b"] := 2

2

(3)

"for ind, val in F_vRk  do print(ind,val)  end do"

1, F_vRk

(4)

NULL

Download table_and_loop_1.mw

Please Wait...