I decided to release my long-suffering ColdFusion datatype conversion CFC to the World.
The code is available from:
http://converttypecfc.riaforge.org/
This is a ColdFusion component encapsulating the functions below. These have been indispensable to myself and others over the past 7 years. Some of the code was inspired by other people's work but was written from scratch to overcome some of the issues I had with their code.
arrayOfStructsToList()
arrayOfStructToSimpleJSON()
arrayOfStructsToSortedArray()
displayConvertFunctionList()
getValFromStruct()
queryRowsToArray()
queryRowToStruct()
queryToArray()
queryToStruct()
structOfStructsToList()
structToArray()
structToSortedArray()
xmlFileToStruct()
xmlToStruct()
Used in conjunction with Ray Camden's toXML CFC, http://www.coldfusionjedi.com/projects/toxml/, it should enable you to throw data around like a frisbee :-)
No comments:
Post a Comment