silogarrett Posted April 27, 2012 Share Posted April 27, 2012 Guru, I want to create an array using global variables that have already be declared equalling 0 in my DocLoad sequence, and these variables are called out in the sequence I'm working in, like this: global A global B global C Why, when I do: private array = {A,B,C} do I get the C1072 Invalid {} pairing error? You can't make arrays using variables? I'm trying to use FindValue or Search functions to locate the index of one of those variables when it goes to 1: FindValue(array,1) or Search(array == 1) Mike Link to comment Share on other sites More sharing options...
AzeoTech Posted April 29, 2012 Share Posted April 29, 2012 You can only put constants inside {} notation, no variables. Constants meaning a number or string: {1,2,3} {"A", "B", "C"} {0x01, 0x02, 0x03} If you want to create an array made out of three other arrays, use concat: concat(A,B,C) Link to comment Share on other sites More sharing options...
silogarrett Posted April 30, 2012 Author Share Posted April 30, 2012 Got it, thank you! Great support for us newbies! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.