I would of agreed with you, and still do, that ColdFusion isn't a
case sensitive language. I can't imagine what it was that 'caused' it
to start working, because only the moment I changed from username to
USERNAME did it start working, but to confirm. I just tested it with,
event.SetValue('loginResult', "#event.GetValue('USERNAME')
#,#event.GetValue('username')#"); and both returned the same value.
It boggles the mind, but whatever, it works.
On Nov 22, 8:13 am, Chris Blackwell <[email protected]> wrote:
> I'd "plaice" money on that being complete red-herring (sorry!!)
>
> Coldfusion has a tendency to mess with struct key cases, and the output
> you're seeing in the other thread you linked to above is just an example of
> that.
>
> CF is not case sensitive when accessing struct members, and neither is
> Model-Glue's event.getValue() method
>
> The following code will work just fine.
> <cfset event.setValue("FOO", "hello")>
> <cfoutput>#event.getValue("foo")#</cfoutput>
>
> something else has caused your code to start working.
>
> Cheers, Chris
>
> 2009/11/21 Chuck <[email protected]>
>
> > Right, I knew that from reading the docs. But event.getValue
> > ('username') was returning an empty string. I created a couple new
> > functions in this post
> >http://groups.google.com/group/model-glue/browse_frm/thread/f2f8c0b91...
> > that told me that I needed to be using event.getValue('USERNAME') all
> > caps, and everything works fine now.
>
> > Thanks for the help,
>
> > Chuck
>
> > --
> > Model-Glue Sites:
> > Home Page:http://www.model-glue.com
> > Documentation:http://docs.model-glue.com
> > Bug Tracker:http://bugs.model-glue.com
> > Blog:http://www.model-glue.com/blog
>
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<model-glue%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en