Announcement

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

  • Counting the number of items in a local (which lies within another local)

    .
    Last edited by Harshita Joshi; 15 Dec 2021, 08:07.

  • #2
    Is this something you are after:

    Code:
    loc x a b c d
    
    loc k : word count `x'
    
    di `k'
    4
    Roman

    Comment


    • #3
      See -help macrolists -

      Code:
      . local A = "a b c"
      
      . local B  ="`A'"
      
      . local C: list sizeof B
      
      . disp "`C'"
      3

      Comment


      • #4
        Code:
        . di wordcount("A B C D")
        4
        
        . local x A B C D
        
        . di wordcount("`x'")
        4

        Comment

        Working...
        X