954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

preserve formatting when entering data into tables......

hello!

I would like to know the method of preserving the format of text when entering it into the databse, so that the same format is restored when data is retrieved bak from the database.

for example if I write

hello world
good morning
how are you


all the three lines should be entered with the same formatting in the database table,
also, when i retrieve the value, it should be displayed in the same format...

thanks a lot in advance....

nice_true
Light Poster
28 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

I Think it is impossible as formatting of text is designed from application
but there is one way , you make function to get the formate "font name,color, size" of the text and insert it concatenated with text into database.
and make another function to check the concatenation and formate when you select the text from database again and give this formate to the text property in your application to display as you need but be sure to hide the formate name from user.

zezo
Newbie Poster
6 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You