Javascript: how to create a variant array of strings
From my TC project I want to pass an array of strings to my Delphi application from a JavaScript unit. If I have understood the matter, I need to pass this array as variant. To create the variant array I try to use theCreateVariantArray function using the following code: var varArray = BuiltIn.CreateVariantArray(0,1); varArray[0] = "value 1"; varArray[1] = "value 2"; Unfortunately this only creates the array but the elements remain empty: debugging inside TC shows the Locals panel with the array but it has two empty entries and inside the receiving function in my Delphi application the array also has two elements which are both empty. Searching this board and the internet did not reveal any hints. Many thanks in advance for any help.Solved1.3KViews0likes2Comments