Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 5th, 2006, 11:08 PM
Registered User
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CHR(13) errors in CDO.CreateMHTMLBody()

When i'm calling CreateObject() method of CDO object it gets stuck if there are 2 CHR(13) characters together in HTML. But i'm not sure whether this is the exact pattern that causes this to get stuck, but it seems as if this is the case. Can somebody please confirm this or tell me about any other cases where this would fail ?

sample code :
DIM loMessage , lcRet
SET loMessage = Server.CreateObject("CDO.Message")
lcRet = loMessage.CreateMHTMLBody("1.HTM")
Response.Write lcRet

SET loMessage = NOTHING

And is there anyway i can get the return value from this method, in cases where it runs completely it returns a NULL (since this method is indicated as a SUB which does not return a value) but i also saw in MSDN that this returns an error message if there are any.

hoping for a QUICK reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateMHTMLBody issues aspless Classic ASP Basics 3 January 8th, 2007 08:26 PM
Chr$ crmpicco Excel VBA 3 April 26th, 2005 02:44 AM
chr function erin SQL Language 6 December 5th, 2003 06:30 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.