Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6039035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:18:33+00:00 2026-05-23T06:18:33+00:00

So I am using VBA (not by choice) to do some fairly non trivial

  • 0

So I am using VBA (not by choice) to do some fairly non trivial programming and finding it a nightmare. Normally I’d just use serialisation to dump the class/object to disk then read it back in but I cannot do that here, not unless I write my own serialisation function, which is basically what I am asking how to do here.

I have a class

[Node.cls]
Public pictureName As String
Public tagGroup As String

' Collection of Node objects
Public children As New Collection

Public isOverViewScreen As Boolean

' Collections of strings
Public overViewScreenWellNames As New Collection
Public overViewScreenWellType As New Collection
Public overViewScreenOpenPictureName As New Collection

which is basically a node in a tree structure, eg a node with a collection of child nodes which build a tree.

What would be the best way to dump this structure to a flat file and read it in, any hints?

I was thinking I could add a parent link to all of my nodes and just recursively visit the tree in order writing them to a txt file, then read it back in the same way, probably not the most efficient but I have a nice quad core machine here. Is there any simpler or more efficient way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:18:33+00:00Added an answer on May 23, 2026 at 6:18 am

    Wrote a function that recursively visits the tree and dumps the ‘nodes’ to a flat text file, I then wrote a function that reads each node back in via a state machine that reads the node line by line recreating the tree, took too long, but it seems to work fine.

    Thanks everyone who read it anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no experience in using vba. I am not a programmer. I have
I'm using VBA in Excel and am trying to use the popular ShellAndWait subroutine.
Note:- It just might be a iterating XML nodes using VBA question. Please look
Using VBA, how can I: test whether a file exists, and if so, delete
Using VBA i have a set of functions that return an ADODB.Recordset where all
Using VBA in MS Office, how do I add text to the Windows clipboard
I'm using VBA in the Excel VBE, but c# or vb are fine. The
The print functionality of Excel (using VBA) is extremely slow. I'm hoping someone has
My path to a 'fulltime'- developer stated as a analyst using VBA with Excel,
I have to make column charts in Excel using VBA only (no user input).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.