Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Local as part of new local´s name

    Dear all,

    I have the following code:

    Code:
    local zz 1 2 3 
    
    foreach z of local zz  {
        di `z' +1
        local k`z' = `z' + 1
    }
    
    di k2
    Somehow, the locals k1, k2, k3 are not stored. Can anyone hint to why this is the case?

    Thanks.

  • #2
    Code:
    display `k2'

    Comment


    • #3
      Thank you Andrew.

      Comment

      Working...
      X