Hi Bruce,

just one idea concerning the new "for each"-functionality, which i 
think can be very helpful. 
What about adding an optional parameter like "index".

For example:

local line_number
filehand = file.open("c:/path/to/file.txt", "r") 
if (filehand >=0) do 
   for each fileline in filehand index line_number
      win.debug(line_number,fileline) 
   endfor 
   filehand.close
endif

or

local word_number
for each word myWord in "alpha beta    gamma" index word_number
     win.debug(word_number,myWord)
endfor

Another way of implementing something like that could be a powerpro-
variable (_for_index_), where the current index of a for-loop is 
stored.
  
Best regards Detlef

Reply via email to