http://coldfusion.com logo
#cfml-general
Title
# cfml-general
r

risto

04/05/2022, 6:21 PM
I can't remember how to reference a struct key with hypens in it. log.["X-Mailgun-Sid"] didn't work.
r

risto

04/05/2022, 6:33 PM
@adam.euans Haha! Thanks Adam. It seems so obvious now. You wouldn't believe how many things I tried.
a

Adam Cameron

04/05/2022, 7:22 PM
@risto one thing to try is just... googling the most obvious string you can think of. I googled "coldfusion struct key with hyphens" (the "struct key with hyphens" literally came from your question here), and the first result answers your question.
I'd refer to google / stack overflow before I started randomly trying stuff
m

Mike Craig

04/06/2022, 12:49 PM
I just ask Adam
🤔 1
4 Views