Hello!
Thanks for the responses, they were most helpful. I've learnt 2 new things
today. =) My apologies for the ambiguity of my question, I had meant it
as interpreted by Jason. For my needs I've created a custom tag that
mimics cfa_button.
On a different note, has anyone used the stPressedStyle attribute of
cfa_button before? The tag seems to pick up the passed values (as cfa_dump
shows) but nothing seems to be done with it. Ideas?
Thanks again,
Cynthia. =)
"Raymond K. Camden" <[EMAIL PROTECTED]>
09/08/2000 22:32 AST
Please respond to [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
cc:
Subject: RE: Help! Structs, properties therein... =)
It was my impression that she wanted stFirst to contain everything from
stSecond UNLESS a corresponding key already existed in stFirst. Your code
would overwrite existing values in stFirst. I would suggest StructInsert.
It
has an optional third arg to block the creation of a key that already
exists.
-ray
>
> <cfscript>
> stFirst = structNew();
> stSecond = structNew();
>
> stFirst.A = "a";
> stFirst.B = "b";
> stFirst.C = "c";
> stFirst.D = "d";
> stFirst.E = "e";
>
> stSecond.A = "aa";
> stSecond.B = "bb";
> stSecond.C = "cc";
> </cfscript>
>
> Dump of stFirst:
> <cfa_dump var="#stFirst#">
>
> Dump of stSecond:
> <cfa_dump var="#stSecond#">
>
> <cfloop collection="#stSecond#" item="key">
> <cfset stFirst[key] = stSecond[key]>
> </cfloop>
>
> Dump of new stFirst:
> <cfa_dump var="#stFirst#">
>
>
> Hope this helps!
>
> Jason
>
>
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.