Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Visula Basic Tree Traversal With database sync

Visula Basic Tree Traversal With database sync

Scheduled Pinned Locked Moved Visual Basic
questiondatabasedata-structures
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sakkatha
    wrote on last edited by
    #1

    hi forum i have a question to ask, i want to store the folders, its subfolders etc etc.. blah blah in a database table and i want to display those folders it child etc.. in the form of tree structure. if the user changes the name of the folder then suitably the values has to be changed in the database also and automatically assign its child, silbling folders or whatever to this new folder name. how difficult is it? someone please give me some idea i have strarting trouble :omg:

    C 1 Reply Last reply
    0
    • S sakkatha

      hi forum i have a question to ask, i want to store the folders, its subfolders etc etc.. blah blah in a database table and i want to display those folders it child etc.. in the form of tree structure. if the user changes the name of the folder then suitably the values has to be changed in the database also and automatically assign its child, silbling folders or whatever to this new folder name. how difficult is it? someone please give me some idea i have strarting trouble :omg:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Each node needs a unique ID and needs to also store it's parent node ID, with NULL or a magic number for the top node. Then the tree is easily built. And the name should NEVER be used as a key, the ID stays the same, and if you change the name, everything else just works. Christian Graus - Microsoft MVP - C++

      S 1 Reply Last reply
      0
      • C Christian Graus

        Each node needs a unique ID and needs to also store it's parent node ID, with NULL or a magic number for the top node. Then the tree is easily built. And the name should NEVER be used as a key, the ID stays the same, and if you change the name, everything else just works. Christian Graus - Microsoft MVP - C++

        S Offline
        S Offline
        Shreeja
        wrote on last edited by
        #3

        thank you very much Mr. Graus for your support ShreejaRajan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups