| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 12:36p -0500 12/30/2003, Graff didst inscribe upon an electronic papyrus:
on ZeroPad(theNumber)
set theString to ""
if theNumber is less than 10 then set theString to "0"
set theString to theString & theNumber
return theString
end ZeroPad
You could shorten that to:
on ZeroPad(theNumber)
set theString to ""
if theNumber is less than 10 then set theString to "0"
theString & theNumber
end ZeroPad
The last result is always returned.
| References: | |
| >getting the date (From: Simon Kidd <email@hidden>) | |
| >Re: getting the date (From: Graff <email@hidden>) | |
| >Re: getting the date (From: Walter Ian Kaye <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.