Hi,

I have some doubts in the structures...........

I define my struct like this:

struct {
        UInt32 id;
        Char* text;
        }r;

I store records of this struct type in database.

My questions

1. When I am reading and writting, is it required to lock the record?

2. Is it possible to change some fields in a struct.........like
        r* p = MemHandlelock(recHandle);
        MemMove(text,recPtr->text,sizeof(recPtr->text)+1);

        But it is nor working? 

        r* p = MemHandlelock(recHandle);
        StrCopy(text,recPtr->text); 
                This is also nort working...

3. How can I change a string value stored in database record??



Thanks in Adavance for any help.

Cheers..........
Sridhar


-- 
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