Dynamic Variable Naming and Reference (ColdFusion)

前端 未结 2 1301
长情又很酷
长情又很酷 2020-12-04 02:08

Happy Friday All,

Been trying to crack this for a couple days. What I am looking to do is dynamically create a variable using a combination of a fixed string and a

2条回答
  •  再見小時候
    2020-12-04 02:50

    All variable scope are structs. So loop through that scope as a struct. As your code is written, it's in the variables scope. I'd put it in it's own struct, but here's a hacked up version of what you're trying to do:

    
    
        
            #k# : #variables[k]#

提交回复
热议问题