+ Reply to Thread
Results 1 to 2 of 2

Custom Classes and User Data

  1. #1
    Registered User
    Join Date
    04-18-2006
    Posts
    24

    Custom Classes and User Data

    Hello. I've done a little VBA Excel, but am just getting into using custom classes and collection classes. The project I'm working uses forms and other UI to let the user "build" a system. To do this, I'm creating custom classes to represent the components of the system the user adds and to hold other information about the components.

    My question is, how can I preserve the data entered by the user, once it is stored as variables in my object model? As of now, once the workbook is closed, all my variables are lost. I've read about scope and lifetime of variables. How can I preserve this user-defined data from session to session? Will it require writing to a worksheet or text file? This would mean devising a whole schema for writing and reading to text.

    Thank you.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Custom Classes and User Data

    Yes. You have to write it to a file somewhere.
    Remember what the dormouse said
    Feed your head

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1