06.06.2015, 18:52
Hi guys,
It appears that the dos_SetToolString{} function does not set a tooltype if the tooltype already exists. To test, I created a file in RAM: called "Test" with an icon and ran the following code:
It added the tooltype as expected and gave a successful result (-1).
However, when I change the tooltype and re-run the code, the tooltype is not updated to "TestString". The function still returns success (-1) so I cannot tell that it has failed. Any ideas what might be going on?
Thanks!
It appears that the dos_SetToolString{} function does not set a tooltype if the tooltype already exists. To test, I created a file in RAM: called "Test" with an icon and ran the following code:
Code:
optimize 4
XINCLUDE "dos.include.bb2"
NPrint dos_SetToolString{"TEST","TestString","RAM:Test.info"}
It added the tooltype as expected and gave a successful result (-1).
However, when I change the tooltype and re-run the code, the tooltype is not updated to "TestString". The function still returns success (-1) so I cannot tell that it has failed. Any ideas what might be going on?
Thanks!