--- In [EMAIL PROTECTED], Matt Graham <[EMAIL PROTECTED]> 
wrote:
> oh yeah, missed that you are finding a record not adding a 
> new one. but it's still the same. Since your key is a 
> string, just pass the string of the record you're trying to 
> find. If it exists, the functions will return the index of 
> the record after the one you're looking for.
> Note: passing the string works only because you're doing 
> only a StrCompare in your compare function.
> 
> matt

Matt, 

I'm obviously missing the point here, how do pass the string into the 
function?  Do I declare a PackedRecord pointer type to pass, if so 
how do I get a handle to it without using DmRecordNew?  If I simply 
declare a packed record and say something like;

packedrecord.idname = somevalue

I seem to get memory errors when passed to the find function, I think 
becasue the string can be a variable length.  

I'm rather confused!

Nick 


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

Reply via email to