ds_list_delete(id, pos);

参数 描述
id The id of the list to change.
pos Where in the list to delete the value.

返回: N/A(无返回值)


With this function you can remove the value stored at a specific position within the list.


if ds_list_size(sc_list)>10
   while (ds_list_size(sc_list) > 10)
      ds_list_delete(sc_list, 0);

The above code checks the size of a ds_list and if it is larger than ten, it loops through the list removing the top value (position 0) until the list has only 10 entries.

上一页: DS Lists
下一页: ds_list_find_index
© Copyright YoYo Games Ltd. 2018 All Rights Reserved