Just as a matter of jargon, you're not adjusting the top tube length, you are adjusting the reach. The bike's top tube can't be adjusted.
Are you talking about
quill stems, like this? If so, you need to remove the handlebar tape and brake levers and thread the bar through the stem's bar clamp.
Watch this video. It will tell you everything you need to know about this
Bing Videos