how can i access a sturct variable or class object from another from - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how can i access a sturct variable or class object from another from

BinishkasparBinishkaspar Posts: 4Member
in VC#,
how can i access a sturct variable
or class object from another from.
and
how can i pass the parameters to another
form?

Comments

  • IDKIDK Posts: 1,784Member
    : in VC#,
    : how can i access a sturct variable
    : or class object from another from.
    : and
    : how can i pass the parameters to another
    : form?
    :
    The first Q is easy to answear. If the variabels are
    public just use a dot to separate the class and the
    variable. e.g.
    myClass1.myVariable

    The second Q is easy to if you just want to send the
    parameters on. I think you havet to do youre own
    function for it to work though

    Hope this helped you
    [hr]
    El PROgrammador Niklas Ulvinge
    (who doesn't know how to spell in inglish)

  • non-monotonicnon-monotonic Posts: 17Member
    : : in VC#,
    : : how can i access a sturct variable
    : : or class object from another from.
    : : and
    : : how can i pass the parameters to another
    : : form?
    : :
    : The first Q is easy to answear. If the variabels are
    : public just use a dot to separate the class and the
    : variable. e.g.
    : myClass1.myVariable
    :
    : The second Q is easy to if you just want to send the
    : parameters on. I think you havet to do youre own
    : function for it to work though
    :
    : Hope this helped you
    : [hr]
    : El PROgrammador Niklas Ulvinge
    : (who doesn't know how to spell in inglish)
    :
    :


    Answering your first question, I think you should make the Class/Struct a static object then the calling class will be able to access this object if the requesting object doesnt have an instance of the containing class.
    A slave to the code

Sign In or Register to comment.