def getrecord():
    """
    Rewrite this for specific applications. Must set EOF to True
    if there are no more records.
    """
    global nrecord, totrecords, EOF
    
    nrecord = nrecord + 1
    if nrecord > totrecords:
        EOF = True
        return ()
    return records[nrecord-1]

    Rewrite this for specific applications. Must set EOF to True
    if there are no more records.
    
recipes/Python/473847_Control_break_report/recipe-473847.py