Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Matrix1 Delete Lookup does not clear all data

Author
Message
Chris Tate
8
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Dec 2015 07:29 Edited at: 18th Dec 2015 08:02

Never mind

This was an error on my part; it appeared as though the file was being updated and loaded, but it was not the case. Please ignore this thread.



---------------------------------------------------------
I am posting this here as a bug report and as something for others to watch out for, which potentially causes inconsistencies with INI file parsing.

Delete Lookup [ID] is a Matrix1 command which should "delete an entire lookup table"; which when sourced from an ini file does not clear the data when the file is loaded. Loading an INI file as a lookup, removing the lookup; changing the file, then reloading the file as an INI file does not replace the old data with the new. Running the code below and having the file changed inbetween each block displays the original value from the old data; instead of the new.

+ Code Snippet
Chris Tate
8
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Dec 2015 07:30
The work around to this problem is to use Clear Lookup, followed by Delete Lookup which removes the data from the lookup table before removing it. Something which Delete lookup should be doing alone in the context of INI file parsing.

Login to post a reply

Server time is: 2017-03-27 21:36:01
Your offset time is: 2017-03-27 21:36:01