Jump to content

2 variables and 2 objects

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Siten0308

Siten0308

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts
Hello,

I am finsihing up on my bank program, i have two variables which are checking and savings, i want the form1 called transfer, anything done to that side affect the regular form which is form2, such as transfer checking into savings, and when you go back to the original form, it shows it in the list box the transaction as well as checking/savings has been altered. how would i go about doing that?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
In form1 why don't you just update form2's listbox when there is a transaction made?

#3
Siten0308

Siten0308

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts
Hello Jordan,

Sorry i forgot to include the checking and the savings variables, which are decimal type variables, they are part of a class called equations. so i have 2 forms and 1 equation which includes the deposit/withdraw equation and the two variables, how do i do it still? can you give me an example or do you need the code?

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
So basically, you want to access members of one form from another?

Just change the scope.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums