I guess that you really mean "method" when you say "function".
A StringBuffer is an object that is used to efficiently create strings. It is not a general purpose container class in which you can store objects such as Vectors, so that you can later retrieve them. There is no straightforward way to add a Vector to a StringBuffer or retrieving Vectors (or any other kind of objects) from a StringBuffer. Show us your code, that will make it more clear what you mean exactly and what you're trying to accomplish. [ February 15, 2008: Message edited by: Jesper Young ]