tracker issue : CF-3042852

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 85177:-(Watson Migration Closure)Summary: docs for structKeyExists() are wrongFrom the docs:[quote]ReturnsTrue, if key is in structure; if structure does not exist, ColdFusion throws an exception

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 11/25/2010

Components: Documentation, General

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

Summary: docs for structKeyExists() are wrongFrom the docs:[quote]ReturnsTrue, if key is in structure; if structure does not exist, ColdFusion throws an exception.[/quote]Not true.  If the key doesn't exist, then a false condition is returned.[quote]This function can sometimes be used in place of the IsDefined function, when working with the URL and Form scopes, which are structures.[/quote]What's this supposed to mean?  What's the significance you're trying to draw attention to here? What's special about the form & URL scopes in this context that warrants you mentioning this?[quote]A structure’s keys are unordered. [/quote]Whilst true, in what way is this relevant as far as structKeyExists() goes?The example is very muddled... couldn't even spot where the structKeyExists() reference was, initially.  Recommend getting rid of all the code relating to switches & structUpdate() and structIsEmpty() and <cfexit> and just have an example that is a) stand-alone (ie: can be copy and pasted into a file and executed); b) demonstrates ONLY structKeyExists().The same could be said of most of your code examples, actually.  They're not great.-- Adam
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3042852

External Customer Info:
External Company:  
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 11/25/2010

Attachments:

Comments: