Shawell a e'crit :
>
> On 17 окт, 13:02, "Lars Bak" <[EMAIL PROTECTED]> wrote:
>
>> If this is a puzzle, I give up,
>> Lars
>>
>>
> This is no pazl and no jog.
> It's be added convinion (more comfortable) and closed a ring self
> building expression, what on glories a JavaScript.
> I may write now that:
> eval('name_'+01) - for operation get VAR as object by - name_01,
> but I don't get back operation, - create and apply name VAR for
> existen object (or you know haw it's to do??)
>
>
>
I may not understand what you want to do but you could use eval('var
name_'+01+'=5'). But why not simply use an object as a map:
map={};
map['name_'+01]=5;
alert(map['name_'+01]);
5==map.name_01;
regards,
Ce'dric
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---