In my Config.xlsx file I have declared a values for my queue:
Name: arrQueueItems Value: {“cat”, “dog”}
In Studio I’m trying to assign Config(“arrQueueItems”) to QueueItems and add QueueItems to the workqueue. What I tried so far is using DirectCast and CType, without success.
QueueItems is declared as a variable of type String.
QueueItems = DirectCast(Config(“arrQueueItems”),String())
Error: Unable to cast object of type ‘System.String’ to type ‘System.String’
Hi,
You can split the items with comma before assigning it to QueueItems. Try this:
QueueItems = DirectCast(Config(“arrQueueItems”).split(","c),String())