• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Re: Traverse A Nested Struct

LEGEND ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

> last struct in a nested struct
Strictly speakly, that doesn't exist. By default, Coldfusion does not sort the
keys of a structure. The following code gives a sorted list of keys, some of
which are themselves structures.



<cfset employee.name.first = "Mary">
<cfset employee.name.last = "Smith">
<cfset employee.position = "Boss">
<cfset employee.phone.home = "111-2222-33333">
<cfset employee.phone.office.ext = "444">
<cfset employee.phone.office.number = "555-6666-77777">
<!--- list of keys --->
keys: <cfoutput>#ArrayToList(StructKeyArray(employee))#</cfoutput><br>
<!--- case-insensitive alphabetical sort of list of keys --->
keys, sorted:
<cfoutput>#ListSort(ArrayToList(StructKeyArray(employee)),"textNoCase")#</cfoutp
ut>

TOPICS
Advanced techniques

Views

426

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

Dear Moderator,

There is a problem of double-identity or impersonation in the forum. For the second time in as many months, a post purporting to come from Newsgroup user BKBK has appeared in the forum. However, there cannot be two of us. I also reported the previous incident to you.

I registered two years ago with Macromedia.com, and do not belong to a Coldfusion Newsgroup. There is a difference of just a few seconds between the time-stamp of his post and that of mine. That suggests there is a technical or security problem.

Two of us might be too much of a good thing. Could you please intervene?







Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

probably nothing sinister. maybe just the forums/newsgroup gateway getting a bit of gas.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

Sure it's not Andy out for a new bit of fun?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

MikerRoo wrote:
> Sure it's not Andy out for a new bit of fun?

oh he's still around but probably not him in this case. i've seen the newsgroup
gateway get funky once in a while before (probably happen a bit more often now
as mm & adobe's infrastructures start to merge). though i was thinking maybe
those weird posts about aquariums, etc. were his handy work. in either case,
kind of a minor irrelevancy these days.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2006 Apr 29, 2006

Copy link to clipboard

Copied

Aha. Cheers, Paul. Saves me a bit of eye-wringing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 02, 2006 May 02, 2006

Copy link to clipboard

Copied

LATEST
Is it going to be a case of

<cfscript>
theNewVar = ReplaceNoCase(everywhereYouGo, "Macromedia", "Adobe", "all");
</cfscript>



Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation