How do you convert an array of variant into an array of string?

How do you convert an array of variant into an array of string?

 

dim keys(-1) as Variant

dim skeys(-1) as string
keys = dic.keys
for each key as string in keys
skeys.append key
next
MyListBox.AddRow(skeys)

To me this seems like a lot of work just to add list of strings to a listbox.

Hello @icecreamkb01.

This is a forum for developers to discuss building apps with Corona and using the Lua language. Your code looks more like some form of BASIC.

If you are looking for help with other languages or frameworks, you probably should look into other forums or help sites. We encourage you to look into Corona as it’s a great framework to work with.

Rob

Hello @icecreamkb01.

This is a forum for developers to discuss building apps with Corona and using the Lua language. Your code looks more like some form of BASIC.

If you are looking for help with other languages or frameworks, you probably should look into other forums or help sites. We encourage you to look into Corona as it’s a great framework to work with.

Rob