Does the len() function in VBScript give you the actual amount of memory
used for a string variable? Or should I use lenb(), which the docs say
gives you the byte length.

I wanted to see how much memory my application variables take up. So I
wrote a script to print out the name, typename, and string length of each
item in application.contents.

The size reported by lenb() is twice as big as that reported by len(). Any
ideas why?

I saw a knowledgebase article that says VB stores strings internally as
Unicode, so I was thinking maybe IIS does the same.

Is there a better method of measuring memory used by application
variables?

Thanks,
Kevin

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to