devxlogo

Generate a DHTML Message From a Database

Generate a DHTML Message From a Database

Question:

I am working with Microsoft DHTML and when I insert the content of a field in a DHTML document, I lose part of my message. For example, suppose I write:

Hello (insert first last name) How are you

I obtain:

 Hello Frederic Smith 

However, I lose:

How are you

Answer:
This problem is actually a pretty easy one to solve. The text field () doesn’t accept a carriage return as a valid character, and will automatically truncate any text that is assigned to it that has a carriage return to a single line. To get around it, use the

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist