Variable Pointers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dmbacon

    #1

    Variable Pointers

    I am having difficulty setting and retrieving the string
    value of a variable on one form from another form. Can
    someone please point me in the right direction.

    Thanks
    dmb

  • Frank Oquendo

    #2
    Re: Variable Pointers

    dmbacon wrote:[color=blue]
    > I am having difficulty setting and retrieving the string
    > value of a variable on one form from another form. Can
    > someone please point me in the right direction.[/color]

    Is that variable protected or private? If so, you cannot get to it
    without first adding a property or some other accessor method to the
    form.

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.


    (Pull the pin to reply)


    Comment

    • Abubakar

      #3
      Re: Variable Pointers

      just make that variable public on class level.

      "dmbacon" <dmbacon64@hotm ail.com> wrote in message
      news:07a501c3c0 4c$4dfe6130$a10 1280a@phx.gbl.. .[color=blue]
      > I am having difficulty setting and retrieving the string
      > value of a variable on one form from another form. Can
      > someone please point me in the right direction.
      >
      > Thanks
      > dmb
      >[/color]


      Comment

      • Frank Oquendo

        #4
        Re: Variable Pointers

        Abubakar wrote:[color=blue]
        > just make that variable public on class level.[/color]

        As a blanket statement, that's a bad idea.

        --
        There are 10 kinds of people. Those who understand binary and those who
        don't.


        (Pull the pin to reply)


        Comment

        Working...