Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    31

    Unanswered: C++ Variable Passing

    hello good people,

    I was wondering if it is possible to pass variables from one form to another as i am finding it difficult?

    i have two forms test.cpp and addsystem.cpp... and need to call some variables across.

    thanks to anyone who can help

    Scott

  2. #2
    Join Date
    Aug 2006
    Posts
    31
    heeeeeeeeeelp

  3. #3
    Join Date
    Apr 2007
    Posts
    10
    use the extern label.

  4. #4
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    248
    Better to create a public set-method in the receiving form with the specific variables as arguments. Call that method in the invoking form... This is the way I would do it in Delphi or Java, but maybe it's not possible in C++ in this straightforward manner?

    Regards
    Last edited by Tyveleyn; 05-20-07 at 07:43.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •