Hi, I'm confused by the various 'end' statements, for example: endloop endif but end function end nls end gmm I cannot remember when I need a blank and when I don't, so I keep looking up the same things over and over. Is there a rationale, or could both forms with and w/o blank be made valid? thanks, sven