Thanks TM, we got that part ironed out.
I'm not sure if I understand this next part correctly.
I've saved a list of Items from a vendor into a listbox, now I would like to save those items to a file to be accessed later.
Sub Save
gosub TM_FileSystem_CreateFileHandle NULL Save_VendorInventoryList
namespace push
namespace local TM_window_list_InventoryList
for %i 0 !list_ptr
{
gosub TM_FileSystem_SaveVariable NULL local std Save_VendorInventoryList list , %i
}
gosub TM_FileSystem_SaveFile Save_VendorInventoryList c:\ , #CharName , InventoryList , .txt
namespace pop
Return