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....

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.