|
-
May 8th, 2001, 10:39 AM
#1
Trim and Trim$
What is the difference between these functions? Trim returns variant, containing string, and Trim$ returns just string. What does it do in practical use?
Or there are some other differences?
Thank you.
Vlad
-
May 8th, 2001, 12:01 PM
#2
-
May 8th, 2001, 12:36 PM
#3
Re: Trim and Trim$
Someone correct me if I'm wrong but specifically if I remember correctly the Variant data type uses a minimum of 16 bytes plus 1 for each character, whereas the string data type uses 1 byte per character.
-
May 8th, 2001, 01:01 PM
#4
Re: Trim and Trim$
Actually I think that Left uses 22 bytes plus string length and Left$ uses 10 bytes plus string length.
See http://msdn.microsoft.com/library/de...rpDataType.htm
-
May 8th, 2001, 01:18 PM
#5
Re: Trim and Trim$
Not only that it consumes less memory, but it does process faster (somewhere around 10% if I remember).
David Paulson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|