Shadowspawn
Aerospace
- Sep 23, 2004
- 259
Hey folks,
I'm back in need of some more help... I'm currently writing a program that adds std notes to new drawings. I have the program set up where the user answers a series of questions that determines the type of dwg being created, and thus loads the appropriate notes. The note file names are in seperate object lists with varying number of notes, with the number of notes being represented by a variable:
...
x=x+1
IF/resp==5, tfn=dir+fname(x)+'.txt'
...
In the above snippet, the object list to call is 'fname' and as I loop through, the individual note to call is represented by 'x'.
Depending on the type of dwg, the number of notes varies. My problem is that I'm getting an error message that 'A subscript of an array is out of range' when I loop past the number of notes in the object array. Any ideas how I can solve this little dilema, without making all the object arrays the same length, padded with a 'fake' note to signal a jump out of the loop (or something similiar)?
Any suggestions would be appreciated, of course.
SS
I'm back in need of some more help... I'm currently writing a program that adds std notes to new drawings. I have the program set up where the user answers a series of questions that determines the type of dwg being created, and thus loads the appropriate notes. The note file names are in seperate object lists with varying number of notes, with the number of notes being represented by a variable:
...
x=x+1
IF/resp==5, tfn=dir+fname(x)+'.txt'
...
In the above snippet, the object list to call is 'fname' and as I loop through, the individual note to call is represented by 'x'.
Depending on the type of dwg, the number of notes varies. My problem is that I'm getting an error message that 'A subscript of an array is out of range' when I loop past the number of notes in the object array. Any ideas how I can solve this little dilema, without making all the object arrays the same length, padded with a 'fake' note to signal a jump out of the loop (or something similiar)?
Any suggestions would be appreciated, of course.
SS