  | |  | value mapping | value mapping 2004-03-08 - By HM Tobor
Back I'm a little confused as to why this doesn't work as expected. Can anyone shed some light on this?
<code> var map = {}; map[String] = 'String Constructor'; map[Array] = 'Array Constructor';
trace('test 1=' + map[String]); trace('test 2=' + map[Array]); </code>
<output> test 1=Array Constructor test 2=Array Constructor </output>
-HM
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106384 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |