Only String Constants can be used for Declaring Libraries

From Xojo Documentation

Error message

Occurs when you've declared an external function using a constant, but either the constant is not defined or it contains something other than a string.