hi,

static void EditSaveData10(ListPtr lptr)
{
        
        VoidPtr textPtr10;
        VoidHand        textHandle10;
        UInt            index10= 0;             
        Word x;
        CharPtr List,dest;
        char *List1[30] ;
        Word i;
    x= LstGetNumberOfItems (lptr);
    
        if (x != NULL )
        {
          for(i=0;i<x;i++)
          {
           List=LstGetSelectionText (lptr,i);
           List1[i] = List;
           dest = StrCat (dest,List);
           dest = StrCat (dest,",");
           
           }
        }
             textHandle10 = DmNewRecord(HandyODB1, &index10, StrLen(dest) + 1);
             textPtr10 = MemHandleLock(textHandle10);
             DmWrite(textPtr10, 0, dest, StrLen(dest) + 1);
             MemHandleUnlock(textHandle10);
             DmReleaseRecord(HandyODB1, index10, true);
           
 }                                       
     
actually this is the function save the list items in one record with "," seperator.
forexample : the list items are 3.and save as "str1,str2,str3" as a one record.
now i want to retrive these record and set to list items.
like str1
     str2 
     str3.
i retriev these record("str1,str2,str3") from database but i unable to seperate these 
strings and set to list items.
i use StrStr (CharPtr str,",") function for sbstring. but this is not usefull.
any one have idea please tell me.

thanks.
laxma.

-------


_____________________________________________________________
Get Your Free ScanMail and Email At http://www.bharatmail.com

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