StructGet vs. Evaluate - Getting different results
I'm working on a project that involves using PDF forms and I am trying to dynamically grab an element in the pdf form. I use StructFindKey to find the form element. Then I tried using StructGet to specifically grab the element using the path provided by StructFindKey. But what I'm seeing is that StructGet isn't finding the element whereas if I use Evaluate I do get the element. Instead StructGet is essentially overwriting the element and creating a new empty structure for its value. (The element is an array of values, so it's easy to see that StructGet is replacing it.) This is using CF 8.
<cfpdfform action="read" source="#request.path.file##attributes.fileid#.pdf" result="frmStruct"></cfpdfform>
<cfset tst = StructFindKey(frmStruct,"EF153", "all")>
<cfdump var="#tst#">
<cfset tst3 = Evaluate("frmStruct#tst[1].path#")>
<cfdump var="#tst3#">
<cfset tst2 = StructGet("frmStruct#tst[1].path#")>
<cfdump var="#tst2#">
Am I just misunderstanding what StructGet does?
