Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Jul 24, 1997

Storing Control Properties

Question:
I need to store a full text box in a data base, so that later I can recover it with all its properties; is that possible or do I have to save each property ONE BY ONE?

Answer:
What I would recommend doing is writing a routine that extracts all the properties from a control and creates some sort of text-based format for it so it can be saved in the database. For instance, you could save the properties like this:

BackColor: blah
ForeColor: blah
You can simply build a big long text string and store it in a memo field. You still have to store each property, but the routine you build loops through all the properties of the control and saves each one to the database.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date