Looping a macro
Forums
A little background: I worked monthly with 24 individual files which I ultimately append together in IDEA but when I import all of them they don't always import with the consistent field types (e.g. character, numeric, etc.). Therefore I end up having to go into each of the files and update accordingly so I can then append them all.
I created a macro to run through every field within a file and change the field type to what I've specified but as it's currently scripted I have to run it individually over each active database. Is there script that I can add to the beginning of this that it will loop through every file within my IDEA project folder?
Hi amandaforkey,
Hi amandaforkey,
This is a normal problem within IDEA. The example I have below calls a function that will read all the IDEA files in your project folder and store them in an array called sIDEAFileList(). You can then loop through the array and do the same thing to each file.
Let me know if you have any questions or if what I am doing is not clear.
Brian