You are viewing our Forum Archives. To view or take place in current topics click here.
Coding Question (+Rep)
Posted:
Coding Question (+Rep)Posted:
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
QUESTION:Is this thread correct? Am I passing the variable "id" correctly in the double brackets? All of the self.Menu variables are set in another thread and are not a problem. So just ignore the fact that its calling variables that don't exist.
What I want this thread to do is for example, if I call it like:
It will call:
And set self.parentMenu equal to:
callMenu( id )
{
self thread changeMenu( self.Menu[[id]]ID, self.Menu[[id]]Title, self.Menu[[id]] );
self.parentMenu = self.Menu[[id]]Parent;
}
What I want this thread to do is for example, if I call it like:
self thread callMenu( 1 );
It will call:
self thread changeMenu( self.Menu1ID, self.Menu1Title, self.Menu1 );
And set self.parentMenu equal to:
self.parentMenu = self.Menu1;
You are viewing our Forum Archives. To view or take place in current topics click here.