June 5, 200718 yr Hi, I'm having trouble figuring out why ValueCount always return 1 when I trying to count the number of values in a repeating variable. Here's is my test Set variable [$test; Value:1] Set variable [$test[2]; Value:2] Show Custom Dialog ["Test"; ValueCount($test)] I'm sure the answer is very simple, but it's just not coming up right now...
June 5, 200718 yr Author So what you are saying is that there is no way we can use variables as arrays? The only work around I found was concatening the same variable with a ¶ between each values. Set Variable [$test; Value:1] Set Variable [$test; $test & "¶" & 2] Show Custom Dialog ["Test"; ValueCount($test)] This is a pretty awkward method don't you think so? Edited June 5, 200718 yr by Guest
June 5, 200718 yr So what you are saying is that there is no way we can use variables as arrays? Sort of. I am saying they ARE NOT arrays. This is a pretty awkward method don't you think so? Hard to say without knowing what you're trying to do.
June 5, 200718 yr Author Here is a print screen of my script I'm trying to print multiple layout in a single PDF file using PDFTK. What I need is to merge all the filenames from results of different scripts. This way I can create the required parameters for PDFTK. Actually, I used the workaround, but I would have prefered to used a more standard way to develop.
June 5, 200718 yr I see in your script that a single variable holds multiple values. I think that's how I would it, too.
Create an account or sign in to comment