*This post is locked for comments
*This post is locked for comments
Use this as an example:
class test
{
NoYes var;
}
static void main(Args args)
{
test t;
;
t = new test();
t.method1();
}
void method1()
{
;
this.method2();
info(strfmt("%1", var));
}
void method2()
{
;
var = NoYes::Yes;
}
Hi,
Can you paste your code? It is most likely due to where you are setting the variable in Method1. It would be really easy to tell if you showed the code. One thing you can do is output your variable in every single method so you can see the value in each method call. i.e.:
static void NoYesExp(Args _args)
{
NoYes var;
;
var = NoYes::No;
info(strfmt("%1",var));
}
Or you can use the debugger to see the variable values as you step through the code.
André Arnaud de Cal...
292,489
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156