Page 1 of 1

PostPosted: Tue Dec 05, 2006 5:22 pm
by xaviersmork
#define LIST1 3007

string app[100]; // String data
int AppNo; // Number of data items in app[]

List(LIST1, 10, 30, 140, 9, 0);
FaddList(LIST1, AppNo, &app);

I get a can not compute error in Faddlist. Why??

PostPosted: Tue Dec 05, 2006 5:43 pm
by xaviersmork
I tried simply adding one item at a time as they are loaded and use the fctl(11) to set the form with the list then use


but now my do while won't end and keeps going forever until error. If I delete the FaddList command it goes back to ending correctly.

PostPosted: Tue Dec 05, 2006 5:50 pm
by xaviersmork

for (a = 1; a < AppNo+1; a++)

item = app[a];


Now my list has the data correctly, but dislpays wrong:

{"bananas","house","Ice cream","automobile"}

looks like in the list:


it is cut off. What is going on?

PostPosted: Tue Dec 05, 2006 6:37 pm
by jstadolnik
Are you using PocketC Architect? The PToolboxLib doesn't support Architect (it was written for the older plain PocketC).

PocketC Architect has it own built-in forms functions, so you can use them instead.


The PToolboxLib guy.

PostPosted: Tue Dec 05, 2006 6:43 pm
by xaviersmork
Oh ok. Thanks.