>how can i save the contents of a grid into a text file?
Usually, you would copy the contents of the underlying table or cursor, not work with the grid directly.
My article on text manipulation,
http://www.utmag.com/August2003/Page20.asp, explains several ways to work with text, both for input and for output.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)