If you do a collection/item loop over the struct, can you fetch the value? Is there any chance the key has got some leading or trailing space in it, which would not be completely obvious in a <cfdump>?
Can you post your actual code in which you're seeing this? There might be a typo you're not seeing, or something. -- Adam On Nov 25, 6:37 pm, KC Kuok <kck...@gmail.com> wrote: > When I try to get key value from a structure I get an error however if > I do a dump function, I can see the struct AND the variable which is > referred to similarly. > > E.g. > ... > ThisValue = STRUCTVARIABLE.THISFOREIGNKEY; > ... > > I get > > Element THISFOREIGNKEY is undefined in STRUCTVARIABLE > > However If I do a dump function, dodump(STRUCTVARIABLE) or even dodump > (STRUCTVARIABLE.THISFOREIGNKEY ) just before that line I can see the > entire structure or just the value respectively. I can't see what is > wrong, could this be a cfscript related bug ? Or am I missing > something real obvious ? > > One of the things I thought maybe wrong is the scope, but even then it > does not seem that anything is wrong with it... > > Dodump() is just a regular cffunction which passes the args to cfdump > inside. > > Any thoughts? > > Thanks in advance! > Chong -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.