yeah i tried that and it did compile fine but my server wouldn't accept it, tells its a bad string or something, so i figure it wants that string is a constant. So what i need is a way of getting the cvar and then declaring the model variable as a constant. I tried something like that but compiler wouldnt let me do that.
As of that i have come to a question, can i pass that variable down to other methods without making it global?
Please give me an example as well as explanation.
In java it would look something like this.
Code:
class someclass
{
public static void main(String[] args)
{
int someInt = 1;
someMethod(someInt);
}
static void someMethod(int theInt)
{
System.out.println(theInt);
}
}
So can i do something similar and how would i be doing it in this particular scenario?
__________________