
-----------------------------------
haujobb
Thu Mar 27, 2003 11:51 am

Returning variables with processes
-----------------------------------
Is it possible to return a variable using a process? In the game I'm programming a process determines a variable and another part of the game reads the value of that variable but when it gets to that points it drops out saying that variable has no value...

any ideas?

-----------------------------------
Blade
Thu Mar 27, 2003 11:53 am


-----------------------------------
you could assign the variable in the process to a main variable that you declare in the main program

-----------------------------------
Catalyst
Thu Mar 27, 2003 4:14 pm


-----------------------------------
u could call it by reference

-----------------------------------
haujobb
Thu Mar 27, 2003 9:16 pm


-----------------------------------
Thanx for helping but could you elaborate please  :D

-----------------------------------
Blade
Thu Mar 27, 2003 9:25 pm


-----------------------------------
if you meant me... then i meant.. if you declare a variable outside of the process then you can assign the value of the variable inside of the process to that external one... as for what catalyst is talking about.. i dont know, cuz i'm new at this too (only 2 months)

-----------------------------------
Catalyst
Thu Mar 27, 2003 9:36 pm


-----------------------------------
just checked, turing doesnt let processes call by-reference so just ignore my reply
