Hi All,
Maybe I'm just being stupid here - however I've been having some problems with dynamic variables.
Everything is fine using them until I start enclosing them inside functions. I'm using cfscript BTW.
Works: new_phones[ii].Phone_Area_Code = something;
Does NOT Work (code within a FOR loop):
if (NOT Len(new_phones[ii].Phone_Area_Code)) {
// Some other code
} // END IFii = the current loop count
I get this error message:
Element Phone_Area_Code is undefined in a CFML structure referenced as part of an expression.
Something in me is saying I can't use a number for at the begining of a new for struct - however, I've used it in the past with no problems before.
Any ideas what's wrong? Or am I just being a dumb *ss? (I had to star that out for the "bad word" filter)
Thanks for any ideas in advance,
Peter J. Farrell
MaePub
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
