terrypin Posted February 3, 2009 Report Share Posted February 3, 2009 Although I've studied the thread http://pgmacros.invisionzone.com/index.php...83&hl=array in which mfseeker suggested a way to achieve this, so far I've had no success. And I see nothing in Help about it. Can anyone post a simple example please? I've been trying to process a set of text values with a Repeat loop, to get all the values into T[1], T[2], T[3], etc, but I'm stumped. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted February 3, 2009 Report Share Posted February 3, 2009 Here's a simple example. It will ask you for the year make and model of 3 cars and then play them back for you. Both ends use an index integer variable created from a repeat command. It had been a long time since I used arrays but I was boning up on them again learning VB and I realized I was thinking of arrays like rows of data when I should have been thinking about them as columns of data. This way we can have easily accessible tabular data without having to resort to sticking it in a file and using ASCII repeat. I hope this helps! Array_Demo.mex Quote Link to comment Share on other sites More sharing options...
paul Posted February 4, 2009 Report Share Posted February 4, 2009 A one-dimensional array is indeed like a single row of multiple columns. But a two-dimensional array is like many rows and many columns. And then there's 3, 4, 5, ....n <g>! Quote Link to comment Share on other sites More sharing options...
terrypin Posted February 4, 2009 Author Report Share Posted February 4, 2009 Here's a simple example. It will ask you for the year make and model of 3 cars and then play them back for you. Both ends use an index integer variable created from a repeat command. It had been a long time since I used arrays but I was boning up on them again learning VB and I realized I was thinking of arrays like rows of data when I should have been thinking about them as columns of data. This way we can have easily accessible tabular data without having to resort to sticking it in a file and using ASCII repeat. I hope this helps! Sure does, thanks Cory! I'm pretty sure that the reason I was getting in a mess was that I was using N and T in commands like this Variable Set String %T[%N%]% from the clipboard contents. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.