> -----Original Message----- > From: Bettina Gill [mailto:[EMAIL PROTECTED] > Sent: Monday, February 07, 2005 9:33 PM > To: CF-Talk > Subject: Re: How can I get the size in bytes/bits of something? > > ><cfset x = "HelloWorld" /> > ><cfset bytes = sizeof(x) /> > > You're probably looking for the LEN() function, i.e. bytes=LEN(x)...
That's close... but in Java (and thus CFMX+) I believe that you should double that for "byte size" as Unicode character sets use two bytes per character. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193529 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

