trim curve at two ends?

Hi all

Just a very quick one (i think!), does anyone know of a way to trim a curve at two ends?  I cant seem to get this very simple thing to work!