Oskie wrote:
> 
> Hello again.
> 
> How does one distinguish null from spaces entered in a field?  I'm trying to
> retrieve records from a db, such that when the user does not enter any
> criteria, I'll retrieve all the records in the db.  But if the user entered
> spaces, the system does not retrieve any record.

Normally, space is just a character as good as any other. Looking for
a couple of spaces should return all records containing a couple of
spaces.

If you are writing your own search routine, you can scan through
the search string beforehand - this should be a no-brainer :-)

The only problem I can think of is when responding to Find Manager
requests. You don't have control how the search string is being
"prepared" before Find inquires your application. But you can change
your response routine to use the original search string (which however
might slow down things significantly).

Regards,
Mit freundlichem Gru�,
        Holger Klawitter
--
Holger Klawitter                                    +49 (0)251 484 0637
[EMAIL PROTECTED]                            http://www.klawitter.de/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to