Possibly another way to rephrase the question is: how do I convert an undefined object into an array?
In an action:
var libStock = libByName("Stock");
var entries = libStock.entries();
var entry = entries[0];
This runs fine. However:
message(entry.type);
Shows "undefined"
for(var iCount in entry){
message(iCount);
};
Shows "0"
Various other object to array functions also do not work. Any suggestions? Please and thank you :-)