David Pokluda
2/16/2006 6:22:00 PM
What about this:
static void StringToHtml(Args _args)
{
str myText = 'This is my simple way of converting text to HTML
text.\nRegards,\nDavid.';
str htmlText = '';
;
htmlText = strfmt('<html><body>%1</body></html>',
Global::strReplace(myText, '\n', '<p>'));
print myText;
print htmlText;
pause;
}
Regards,
David.
"Woodfarm" <Woodfarm@discussions.microsoft.com> wrote in message
news:B3598CE3-B870-4809-B181-77B6D4C0380C@microsoft.com...
> ok can you give me a code example?
>
> "David Pokluda" wrote:
>
>> I solved this with Global::strReplace method.
>>
>> Regards,
>> David.
>>
>> "Woodfarm" <Woodfarm@discussions.microsoft.com> wrote in message
>> news:1D85A3DA-0DDB-4B9F-934C-ACC26CAF111E@microsoft.com...
>> > Hi!
>> >
>> > I have a litle problem. I want to be able to convert a string to html
>> > with
>> > html code for new line and new paragraph - does anybody have any
>> > surgestion
>> > or some code and can look at to get me startet - or is the a class or
>> > something i can use?
>> >
>> > //Christian
>>
>>
>>