Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

looping snippet #60

Open
gwarah opened this issue Feb 2, 2017 · 0 comments
Open

looping snippet #60

gwarah opened this issue Feb 2, 2017 · 0 comments

Comments

@gwarah
Copy link

gwarah commented Feb 2, 2017

Let's suppose I intent to insert some attributes with their getters/setterrs methods, so would be nice if it's possible by a looping snippet like this one (example in vb script):

  1. trigger

vbs-attributes(name,age)

  1. linked to these hypothetical snippet:
'''''''''''
' atributes
'''''''''''
$[![(repeat)
private $[![(var)]!]
]!]
 
'''''''''''
' getters and letters 
'''''''''''
$[![(repeat)
    ' attribute $[![(var)]!]
    Public Property Let fun$[![(var)]!](pTxt)
        $[![(var)]!] = pTxt
    End Property
    
    Public Property Get fun$[![(var)]!]()
        fun$[![(var)]!] = $[![(var)]!]
    End Property
]!]


  1. resulting in:
'''''''''''
' atributes
'''''''''''
private name
private age

'''''''''''
' getters and letters 
'''''''''''
' attribute name
Public Property Let funname(pTxt)
      name = pTxt
End Property
    
Public Property Get funname()
      funname = name
End Property

' attribute age
Public Property Let funage(pTxt)
      age = pTxt
End Property
    
Public Property Get funage()
      funage = ageEnd Property
End Property

It's it possible? How?

@gwarah gwarah changed the title looping resource looping snippet Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant