Instrument Scanner - False Error message after using panel_prop() function

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
Tetrachromat
Posts: 236
Joined: Sun Feb 14, 2021 6:55 pm

Instrument Scanner - False Error message after using panel_prop() function

#1 Post by Tetrachromat »

When using the API function panel_prop("WIDTH"), the returned value is of type "number". But the "Instrument Scanner" handles the return type as "string".

When doing calculations on the returned value, the "Instrument Scanner" logs the following error:

Code: Select all

2022-05-28 19:59:06.656 ERROR InstrumentScanner - LC2 - BN-2 Main Panel: Error loading instrument script: [string "logic.lua"]:39: attempt to perform arithmetic on a string value (field 'width')
Side note: The same error message is logged 5 times for the same code line.

The same happens after using panel_prop("HEIGHT").

Paul

Post Reply