It looks like you have two problems:
1) How do you prevent a user from searching for ' ' or ' '? Simply do:
<CFIF NOT Len(Trim(Form.Search))>
throw an error
Trim removes white space from the left and right side of a variable. Len
returns zero is the string length is zero, so, this will work for you.
2) Your error is occuring, I believe, because your collection contains
pointer to objects that do not exist. Whenever you use TypeIndex to create
the collection, bare in mind that it will index all of your objects. If you
delete an object, the collection may not be updated. (This was fixed in 1.01
though, so maybe your running 1.0?)
=======================================================================
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: John Haigh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 7:24 PM
> To: Spectra-Talk
> Subject:
>
>
> I am attempting to perform an indexed search and it is working fine except
> if I enter 1 or more spaces with no other characters. I am using input
> validation to give them a message if they do not enter anything,
> but I don't
> know what to do if they enter one or more spaces with no other characters.
> This is the error message I get:
>
> An error occurred while evaluating the expression:
>
>
> "#stObjectData[key]#"
>
>
>
> Error near line 192, column 52.
> ------------------------------------------------------------------
> ----------
> ----
>
> The member "AA03AF10-97BF-11D4-9F7500C04F05AB6A" in dimension 1 of object
> "stObjectData" cannot be found
>
> ------------------------------------------------------------------
> ------------
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/sp
> ectra_talk or send a message to
> [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.