The Past Perfect Progressive is used for actions that were unfinished when another action, etc, took place:
I had been living there for years before I got married.
Some books use the term Past Perfect Progressive, and others use Past Perfect Continuous.
Browse the following links to other content related to 'Past Perfect Progressive (Past Perfect Continuous)' from the 'Verbs and Tenses' grammar category:
