Author |
Message |
haujobb
|
Posted: Thu Mar 27, 2003 11:51 am Post subject: 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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Blade
|
Posted: Thu Mar 27, 2003 11:53 am Post subject: (No subject) |
|
|
you could assign the variable in the process to a main variable that you declare in the main program |
|
|
|
|
|
Catalyst
|
Posted: Thu Mar 27, 2003 4:14 pm Post subject: (No subject) |
|
|
u could call it by reference |
|
|
|
|
|
haujobb
|
Posted: Thu Mar 27, 2003 9:16 pm Post subject: (No subject) |
|
|
Thanx for helping but could you elaborate please |
|
|
|
|
|
Blade
|
Posted: Thu Mar 27, 2003 9:25 pm Post subject: (No subject) |
|
|
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
|
Posted: Thu Mar 27, 2003 9:36 pm Post subject: (No subject) |
|
|
just checked, turing doesnt let processes call by-reference so just ignore my reply |
|
|
|
|
|
|