I tried combining names in a script as follows
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
target="v"+format["%1",raah	 3;
[/QUOTE]
raah is an integer from 1 ... 10
I then have 10 different objects in a mission named from v1 .. v10
I then checked that the combining of the number and letter is correct in hint dialog
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format["%1",target][/QUOTE]
When I try to use the "target" variable in another command I get an error message about the variable being a string and not object.
So my question is can I change a type of a variable from string to object? Or are there any other possibilities to achieve the same
HOME
Reply With Quote





