P
palmis
I have a problem:
I want to create an instance of RimsAcyclic if ASSET=="Rims_A" or an
instance of Message if ASSET=="Rims_B". This objects have to have the
same name (message_temp).
This is my code:
if (ASSET=="Rims_A"){
RimsAcyclic message_temp = new RimsAcyclic();
}
else if (ASSET=="Rims_B"){
Message message_temp = new Message();
}
out of 'if control', message_temp is unknown.
How can I do?
Thanks
Palmis.
I want to create an instance of RimsAcyclic if ASSET=="Rims_A" or an
instance of Message if ASSET=="Rims_B". This objects have to have the
same name (message_temp).
This is my code:
if (ASSET=="Rims_A"){
RimsAcyclic message_temp = new RimsAcyclic();
}
else if (ASSET=="Rims_B"){
Message message_temp = new Message();
}
out of 'if control', message_temp is unknown.
How can I do?
Thanks
Palmis.