Hello

I hope that someone can help me. I want to get one float and two ints from 
my record but I dont know how. I know that the float is in position 2 and 
the ints are in positions 22 and 24 the rest are strings
I have tried with this code and it comes out numbers but not the numbers I 
want...

                        for (UInt16 i=0;i<recNumber;i++)
                                {
                                        MemHandle h = DmQueryRecord(dbPtr, i);

                                        if(h)
                                        {

                                                UInt32 recSize= MemHandleSize(h);

                                                Int16 *n = (Int16*)MemHandleLock(h);

                                                Int16 
*inString=(Int16*)MemPtrNew(recSize);


                                        MemMove(inString, n, recSize);

                                                start=inString[22];//start is a Int16

                                                MemHandleUnlock(h);

                                                //if(inString != NULL)
                                                        //MemPtrFree(inString);


                                        }
Thank you in advance Anki

_________________________________________________________________
H�mta MSN Explorer kostnadsfritt p� http://explorer.msn.se


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