Page 1 of 1
Creating temporary variable in column code

Posted:
Sun Jan 04, 2009 5:38 pm
by ftang
Is it possible to create a temporary variable in my column code? For example:
myint integer;
myint = 5;
ty
Re: Creating temporary variable in column code

Posted:
Mon Jan 05, 2009 10:32 am
by kraada
I believe you can do this sort of things using the Variables tab of the custom stats creation area, though I honestly haven't worked much with the variables, so I'm not sure exactly how they work for certain things (like typecasting).
Re: Creating temporary variable in column code

Posted:
Mon Jan 05, 2009 2:38 pm
by ftang
I don't think that you can refer to a variable in column code. You can refer to a variable in a statistic and then add a statistic to a reports stat.
Re: Creating temporary variable in column code

Posted:
Mon Jan 05, 2009 2:47 pm
by kraada
What are you trying to do? If I had an idea what stat or report you're trying to build, I might be able to think of another way to get it to work.
Re: Creating temporary variable in column code

Posted:
Tue Jan 06, 2009 12:10 pm
by WhiteRider
I don't think you can currently do what you want, but I've suggested a similar 'string replacement' type of variables to the development team.
Re: Creating temporary variable in column code

Posted:
Tue Jan 06, 2009 2:19 pm
by ftang
I was just trying to create a temporary variable so that I wouldn't have to hardcode my position (on the button, utg, etc.) in my column expression.
Re: Creating temporary variable in column code

Posted:
Tue Jan 06, 2009 3:50 pm
by kraada
Yeah, that sort of thing isn't possible yet but hopefully someday it will be.