This is an easy way to manage your DataTable substructures.
Pros:
- managed through strings
- easy to manage
- (next to) infinite space
Cons:
- managed through strings
- uses data table
WARNING: In addition to occupying the subtable defined by the prefix and concatenations to the right side, values are sometimes stored with the delimiter (c_arkless_dataTable_list_delimiter) at the very left.
Demonstration
Chose any string as prefix for your list.
You may use every element you get and all possible concatenations to the right side, that do not use the specified delimiter (c_arkless_dataTable_list_delimiter) to store data in the DataTable. Since namespaces do not overlap, you may even use them as prefixes for new lists.
function interface:
//get new elementstringarkless_dataTable_list_getListElement(stringprefix);//remove elementvoidarkless_dataTable_list_removeListElement(stringlistElement);//remove element from listvoidarkless_dataTable_list_removeListElementFromList(stringlistElement);//get first/last list elementstringarkless_dataTable_list_getFirst(stringprefix);stringarkless_dataTable_list_getLast(stringprefix);//add element to listvoidarkless_dataTable_list_addElementAsFirst(stringtoAdd);voidarkless_dataTable_list_addElementAsLast(stringtoAdd);voidarkless_dataTable_list_addElementInFrontOfElement(stringtoAdd,stringinFrontOfThis);voidarkless_dataTable_list_addElementBehindElement(stringtoAdd,stringbehindThis);//traverse liststringarkless_dataTable_listElement_getPrevious(stringelement);stringarkless_dataTable_listElement_getNext(stringelement);
Description
This is an easy way to manage your DataTable substructures.
Pros: - managed through strings - easy to manage - (next to) infinite space
Cons: - managed through strings - uses data table
WARNING: In addition to occupying the subtable defined by the prefix and concatenations to the right side, values are sometimes stored with the delimiter (c_arkless_dataTable_list_delimiter) at the very left.
Demonstration
Chose any string as prefix for your list.
You may use every element you get and all possible concatenations to the right side, that do not use the specified delimiter (c_arkless_dataTable_list_delimiter) to store data in the DataTable. Since namespaces do not overlap, you may even use them as prefixes for new lists.
function interface:
Example
Click Me
Installation
Import the library into your map
Changes