
-----------------------------------
turinggirl
Wed May 16, 2012 5:48 pm

GUI problem
-----------------------------------
What is it you are trying to achieve?



What is the problem you are having?



Describe what you have tried to solve this problem



Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)








Please specify what version of Turing you are using


-----------------------------------
turinggirl
Wed May 16, 2012 8:24 pm

Re: GUI problem
-----------------------------------
sorry here is my problem:

How can I carry out the sum on one window to another window using GUI? 

Here is part of my program: 


procedure windowBCheckout 
GUI.HideWindow (defWinID) 
GUI.ShowWindow (WindowBCheckout) 
end windowBCheckout 

count:int:=0 

procedure windowtouch 
count := count + 199 
put count 
end windowtouch 

buttontouch := GUI.CreateButton (765, 350, 0, "Add to Cart", windowtouch) 

in another window: 

windowtouch %but this gives me 0 instead of 199 

Let say I have a bunch of calculations on one window, how would I carry out the sum to another window? 
It's really difficult to explain on this website S:

-----------------------------------
Tony
Wed May 16, 2012 8:29 pm

RE:GUI problem
-----------------------------------
what's your code for loading that other window?

-----------------------------------
turinggirl
Wed May 16, 2012 8:43 pm

Re: GUI problem
-----------------------------------
I have sent you my program via mail, please check. Many thanks!
