cut and paste this wherever you can run it..
<cfset struct1 = structNew()>
<cfset struct2 = structNew()>
<cfset struct1.name = "hi">
<cfset struct1.address = "he">
<cfset struct1.phone = "123">
<cfset struct2.phone = "123">
<cfset struct2.address = "he">
<cfset struct2.name = "hi">
<cfwddx action="CFML2WDDX" input="#struct1#" output="structString1">
<cfwddx action="CFML2WDDX" input="#struct2#" output="structString2">
<cfset areSame = compare(structString1,structString2)>
<cfif areSame IS 0>
The structures are identicle
<cfelse>
The structures are different
</cfif>
Bryan Love ACP
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 6:29 AM
To: CF-Talk
Subject: structures always serialized to WDDX the same way?
Does anyone know if structures that are serialized to WDDX are always
arranged the same way? That is, if I create a structure, adding keys and
values in a certain order, then create another structure using the same code
(but not by doing a Duplicate or StructCopy), and serialize them both, will
the serialized versions string-compare as identical? The docs say that
StructKeyList and StructKeyArray "do not return the keys in any particular
order", so I can imagine that the WDDX versions might be arranged
differently.
Any experience?
thanks
-------------------------------
Martin Herbener
[EMAIL PROTECTED]
Kentucky Department of Education
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists