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
  1. Home
  2. The Lounge
  3. How to Expose Children... [modified]

How to Expose Children... [modified]

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
24 Posts 15 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.
  • J Jeremy Falcon

    Hey it's the holidays, so... You'll probably get better responses in the Visual C++[^] forum.

    Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

    C Offline
    C Offline
    Christian M Jensen
    wrote on last edited by
    #8

    This is for a project I am working on in C#

    R J 2 Replies Last reply
    0
    • C Christian M Jensen

      This is for a project I am working on in C#

      R Offline
      R Offline
      Rohde
      wrote on last edited by
      #9

      A bit slow today? :):) Try the C# forum then (http://www.codeproject.com/script/comments/forums.asp?forumid=1649[^])


      "A mathematician is a device for turning coffee into theorems." - Paul Erdos (1913-1996)

      1 Reply Last reply
      0
      • C Christian M Jensen

        This is for a project I am working on in C#

        J Offline
        J Offline
        Jeremy Falcon
        wrote on last edited by
        #10

        Christian M Jensen wrote:

        This is for a project I am working on in C#

        There's also a C# forum too. In all seriousness, you'll get your best replies there.

        Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

        1 Reply Last reply
        0
        • C Christian M Jensen

          I am not sure I understand your analogy. The list of bills to pay could be thousands of items long and each could be several pages. In my example, it is an outside source asking the parent to divulge how many children it has and then allowing the outside source to get one or more of them in a range.

          V Offline
          V Offline
          Vikram A Punathambekar
          wrote on last edited by
          #11

          Christian, Jeremy is making fun of you. It looks like you're new here, so let me tell you that this is a general forum and programming questions are NOT allowed. Please use the Message Boards link to choose the language forum you want (C++, C#, etc). You will get much better responses there. :) PS: I thought this was a father-son discussion or something like that when I read the subject. :laugh:

          Cheers, Vikram.


          "Life isn't fair, and the world is full of unscrupulous characters. There are things worth fighting for, killing for and dying for, but it's a really small list. Chalk it up to experience, let it go, and move on to the next positive experience in your life." - Christopher Duncan.

          1 Reply Last reply
          0
          • C Christian M Jensen

            Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?

            G Offline
            G Offline
            Gary Kirkham
            wrote on last edited by
            #12

            Christian M Jensen wrote:

            The children must be editable

            The first time I read that I read it as "The children must be edible"

            Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

            J C B 3 Replies Last reply
            0
            • G Gary Kirkham

              Christian M Jensen wrote:

              The children must be editable

              The first time I read that I read it as "The children must be edible"

              Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #13

              Gary Kirkham wrote:

              The children are edible

              :omg:

              Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

              1 Reply Last reply
              0
              • C Christian M Jensen

                Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #14

                Christian M Jensen wrote:

                The children must be editable and retain their data in persistent storage.

                Take your children and shove them where the serializer doth shine. Marc

                Thyme In The Country

                People are just notoriously impossible. --DavidCrow
                There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                P 1 Reply Last reply
                0
                • G Gary Kirkham

                  Christian M Jensen wrote:

                  The children must be editable

                  The first time I read that I read it as "The children must be edible"

                  Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

                  C Offline
                  C Offline
                  Christopher Duncan
                  wrote on last edited by
                  #15

                  Gary Kirkham wrote:

                  The first time I read that I read it as "The children must be edible"

                  Programmers Eat Their Young Tomorrow, on Jerry Springer...

                  Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

                  T 1 Reply Last reply
                  0
                  • G Gary Kirkham

                    Christian M Jensen wrote:

                    The children must be editable

                    The first time I read that I read it as "The children must be edible"

                    Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

                    B Offline
                    B Offline
                    brianwelsch
                    wrote on last edited by
                    #16

                    To what exactly are these children being exposed?

                    BW


                    If you're not part of the solution, you're part of the precipitate.
                    -- Steven Wright

                    J G 2 Replies Last reply
                    0
                    • B brianwelsch

                      To what exactly are these children being exposed?

                      BW


                      If you're not part of the solution, you're part of the precipitate.
                      -- Steven Wright

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #17

                      brianwelsch wrote:

                      To what exactly are these children being exposed?

                      Radiation from the microwave because they simply refuse to learn how to cook. :rolleyes:

                      Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

                      1 Reply Last reply
                      0
                      • B brianwelsch

                        To what exactly are these children being exposed?

                        BW


                        If you're not part of the solution, you're part of the precipitate.
                        -- Steven Wright

                        G Offline
                        G Offline
                        Gary Kirkham
                        wrote on last edited by
                        #18

                        FB[^]

                        Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

                        1 Reply Last reply
                        0
                        • C Christian M Jensen

                          Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #19

                          Whoah - that title makes me think of Gary Glitter. This type of thing should not be allowed.

                          Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Christian M Jensen wrote:

                            The children must be editable and retain their data in persistent storage.

                            Take your children and shove them where the serializer doth shine. Marc

                            Thyme In The Country

                            People are just notoriously impossible. --DavidCrow
                            There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                            People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                            P Offline
                            P Offline
                            Pete OHanlon
                            wrote on last edited by
                            #20

                            I'm almost tempted to use that in my sig:laugh:

                            Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                            1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Wow, this is a tough call. I have to admit, I'm having difficulty debating on whether or not I see this as a programming question. :laugh: I have to lean towards yeah because it's a direct question and not so much a general idea. With that being the case, I shall use one of my more traditional responses and that is to be a smart arse. Enjoy...

                              Christian M Jensen wrote:

                              If you had a parent object and wanted to expose its children from persistent storage

                              If parents are trying to kick the kid out of the house (what's he's like 30 now) then I suggest they give him a List of bills to pay.

                              Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

                              M Offline
                              M Offline
                              Mark Salsbery
                              wrote on last edited by
                              #21

                              :laugh: I'm NOT going to answer THIS one!

                              1 Reply Last reply
                              0
                              • C Christopher Duncan

                                Gary Kirkham wrote:

                                The first time I read that I read it as "The children must be edible"

                                Programmers Eat Their Young Tomorrow, on Jerry Springer...

                                Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

                                T Offline
                                T Offline
                                Tim Craig
                                wrote on last edited by
                                #22

                                Christopher Duncan wrote:

                                Programmers Eat Their Young

                                It worked for Jonathan Swift. :suss:

                                The evolution of the human genome is too important to be left to chance.

                                1 Reply Last reply
                                0
                                • C Christian M Jensen

                                  Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?

                                  E Offline
                                  E Offline
                                  El Corazon
                                  wrote on last edited by
                                  #23

                                  I never expose children. When they are old enough (past the age of consent), they can expose themselves and suffer the consequences, until then, they remain hidden.

                                  _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                  1 Reply Last reply
                                  0
                                  • C Christian M Jensen

                                    Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #24

                                    Its illegal round here.

                                    Truth is the subjection of reality to an individuals perception

                                    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