Monday, February 20, 2006

Re: Re: st: How can I add leading zeros conditionally?

Thank you, Nick.



>>> N. J. Cox

Let me add one comment to Joseph's characteristically lucid and detailed explanation.

- -string()- and -tostring- are really the same idea at two different levels.

The -string()- function is more fundamental, and does the hard work of converting numbers to strings.

The -tostring- command is, from one point of view, a wrapper for -string()-, as may be seen by glancing at the code:

. viewsource tostring.ado

The difference -tostring- makes is twofold: convenience and protection. You can process several variables at one and there are some safeguards inhibiting you from doing some dopey things.


__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around * * For searches and help try: * * *


Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?