Im not sure if im doing something stupid somewhere, but I have a list that i want to add entries too, they are int8 data type, I left the first two columns alone and then declared the third column as int8 as seen below. I then try to add entries using the below code, which works fine once but then causes my code to become unresponsive, however if i change the 3rd column to int32 both in the list and in the script then the code works perfectly. Obviously I am just going to use int32 instead, but I just thought I would see if I am doing something wrong somewhere?
Code: Select all
int row = 0;
int8 number1 = 0;
void $InitialiseList$ ()
{
CustomListData data;
row++;
number1 += 4;
data.WriteInt32(CustomListColumn.MyCustomList_MyColumn1, row);
data.WriteInt8(CustomListColumn.MyCustomList_MyColumn2, number1);
ListManagerAddItem(ListDataType.MyCustomList, data);
//move to the end of the list
ListManagerSetPosition(ListDataType.MyCustomList, ListManagerGetCount(ListDataType.MyCustomList) - 1);
}
Power vision: 2.8.10546
Screen: PV450
Application: 2.8.10505
OS: 2.8.10016
Loader: 2.3.20006