Resolved anyhow, replaced any spaces with _ before putting in the struct, then switched it back again on the way out. A little more than should be required but hey, that's life :o)
cheers guys, Phil. > -----Original Message----- > From: Phil Ewington [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 11:00 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] StructFindValue() > > > Ok, interesting I must say, no spaces are allowed in the value when > searching a struct. Is this a bug?? > > > > > > -----Original Message----- > > From: Phil Ewington [mailto:[EMAIL PROTECTED]] > > Sent: 19 September 2002 10:52 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] StructFindValue() > > > > > > what's the difference other than hash marks? > > > > > -----Original Message----- > > > From: Stephen Fernandez [mailto:[EMAIL PROTECTED]] > > > Sent: 19 September 2002 10:49 > > > To: '[EMAIL PROTECTED]' > > > Subject: RE: [ cf-dev ] StructFindValue() > > > > > > > > > u have to put the actual object not the name of the object, try > > > structfindvalue(#selected#, postcode) > > > > > > -----Original Message----- > > > From: Phil Ewington [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, September 19, 2002 10:48 AM > > > To: [EMAIL PROTECTED] > > > Subject: RE: [ cf-dev ] StructFindValue() > > > > > > > > > here you go... > > > > > > <cfif arraylen(structfindvalue(selected, email)) eq 0 and > > > arraylen(structfindvalue(selected, postcode)) eq 0> > > > <cfset selected[users.user_id[randnum]] = structnew()> > > > <cfset selected[users.user_id[randnum]].firstname = firstname> > > > <cfset selected[users.user_id[randnum]].lastname = lastname> > > > <cfset selected[users.user_id[randnum]].email = email> > > > <cfset selected[users.user_id[randnum]].postcode = postcode> > > > <cfset selected[users.user_id[randnum]].dob = dob> > > > </cfif> > > > > > > Phil. > > > > > > > -----Original Message----- > > > > From: Lucas Sherwood [mailto:[EMAIL PROTECTED]] > > > > Sent: 19 September 2002 10:45 > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: [ cf-dev ] StructFindValue() > > > > > > > > > > > > Can we see your source?? > > > > ----- Original Message ----- > > > > From: "Phil Ewington" <[EMAIL PROTECTED]> > > > > To: "CF Dev List" <[EMAIL PROTECTED]> > > > > Sent: Thursday, September 19, 2002 10:43 AM > > > > Subject: [ cf-dev ] StructFindValue() > > > > > > > > > > > > > Hi all, > > > > > > > > > > Can anyone tell me why the following error is occuring when using > > > > > structfindvalue() to look for a postcode... > > > > > > > > > > StructFindValue(): Illegal value string specifed. Value string: > > > > "AB1 2AB" > > > > > > > > > > Docs say value must be a simple value, as far as I am concerned, a > > > > postcode > > > > > is a simple value. > > > > > > > > > > TIA > > > > > > > > > > Phil. > > > > > > > > > > P.S. Still using CF 5.0 > > > > > > > > > > ------------------------------------- > > > > > Phil Ewington > > > > > Technical Director > > > > > ------------------------------------- > > > > > 43 PLC > > > > > 35 Broad Street, Wokingham > > > > > Berkshire RG40 1AU > > > > > Tel: +44 (0)118 978 9500 > > > > > Fax: +44 (0)118 978 4994 > > > > > > > > > > http://www.soyouthinkyouknowitall.com > > > > > ------------------------------------- > > > > > > > > > > > > > > > -- > > > > > ** Archive: > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > This email has been scanned for viruses by NetBenefit using Sophos > > anti-virus technology > > > > > > > > This email has been scanned for viruses by NetBenefit using > > Sophos anti-virus technology > > > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > For human help, e-mail: [EMAIL PROTECTED] > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
