MarionMcD
July 19th, 2001, 03:30 AM
Hi there,
I'm looking for a VB method of using placeholders in a string so that dynamic text can be substituted in. For example, in C++, one could do:
char* buffer;
sprintf( buffer, "The quick brown %s jumped over the lazy dog.", "fox");
And then the buffer would contain "The quick brown fox jumped over the lazy dog."
Basically, I want to load text from a data file, which contains some sort of placeholder like this, so that I can easily insert any dynamic text into the string without having to fiddle about with Split or ReplaceWord or things like that if I can help it.
Thanks!
Marion
I'm looking for a VB method of using placeholders in a string so that dynamic text can be substituted in. For example, in C++, one could do:
char* buffer;
sprintf( buffer, "The quick brown %s jumped over the lazy dog.", "fox");
And then the buffer would contain "The quick brown fox jumped over the lazy dog."
Basically, I want to load text from a data file, which contains some sort of placeholder like this, so that I can easily insert any dynamic text into the string without having to fiddle about with Split or ReplaceWord or things like that if I can help it.
Thanks!
Marion