Guys,
I'm trying towrite a list of tasks in a database. This list is intially
ued to create a list, it is then saved, and hopefully retrieved in the same
format later on. The list is by neccessity divided up with null characters.
The record is NOT packed, and all other sections of the record retrieve
sucessfully. However, when I try to retrieve the list, I always get the
first Item, and then a load of weird data, obviously some random stuff in
memory.
Can anyone tell me what I'm doing wrong (or come up with a better way of
doing it)??
Thanks Ian
err = DmWrite(newQuoteRecordP, offset, tasks, tasksLen);
offset += QUOTE_TASK_SIZE;
for(i=0;i<=(numTasks-1);i++){
FrmAlert(Check_OK_Here_Alert);
StrCopy((tasks+(tasksOffset2*sizeof(Char))),
(searchRecordP->Task+(tasksOffset2*sizeof(Char))));
tasksOffset2+=(QUOTE_TASK_SIZEA+QUOTE_AMOUNT_SIZE);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/