Ooh, I want to try something I didn't see anyone else do...
<cfscript>
map = structNew(); // actually, this is optional
map.a = 1;
map.b = 2;
for (i in map) {
writeOutput('<a href="' & map[i] & '">' & map[i] & '</a>');
}
</cfscript>
On 2/2/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
> Could anyone translate this pseudo code to coldfusion for me please?
>
>
> HashMap map = new HashMap();
>
> map["a"] = 1;
> map["b"] = 2;
>
> for each key in map {
> print '<a href="' + key + '">' + map[key] + '</a>';
> }
>
> Thank you.
>
> PS: I am asking that because I am really new in CF, and my boss leaves me no
> time for the proper research. I would really appreciate any help.
>
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231166
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54