At 08:49 AM 13/3/2002 -0800, you wrote:
>   How can I search a database record using date field.
>I want to retrieve all records whose date field
>matches search date. For this should I use MemSet
>function to fill the memory location with the search
>date for the purpose of comparision. If so how can I
>convert a search date (DateTimeType structer) into
>byte value.
>
>  when I try to use MemSet compiler rising error
>----:can not convert struct to unsigned char..... for
>my code snippet-
>
>  searchRec = MemPtrNew(sizeof(dbRec));
>  MemSet(searchRec, sizeof(DateTimeType), searchDate);

MemSet is used to set each byte in a buffer to the same value, for example 
setting them all to zero. It looks to me like you need a DateTimeType 
struct in your searchRec (or use a DataTimeType as your search object).

See docs on TimSecondsToDateTime.

Matt


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

Reply via email to