Let's look at the outer for loop. The logic you are stating it is only going to one once, so why have?
If cso_Row = 1 and you are checking against cso_Row <= 1, as soon as the ++ executes it cso_Row will equal 2 and the loop will exit. It is a worthless loop at basically it says to execute it once.
Not, I am not sure the condition you have for the inner loop executing as you have stated, unless something is causing an issue with the Create-Booking-Batch-Edit script that isn't apparent.
If you start at i=1, it should execute 4 times (1,2,3,4). If you start at i=0, then it should execute 5 times (0,1,2,3,4). Is this code retyped, or is it cut and pasted? If it is latter it would work as stated, if it was retyped, please verify the syntax and make sure it reads the same as above.
Insanity: doing the same thing over and over again and expecting different results
The first loop (cso)is like that because originally we had to run the whole script more than once and each time the script would use data from a different row of and excel file. I just leave it and adjust when needed. Now however the inner loops works now as I changed noticed in the script being called there was a statement resetting the value of "i", Thank your help. I never thought to look there.
The Hook means that someone who was here before me wrote special code that is stored in the "lib" directory to allow Win Runner to test Visual Works smalltalk.