| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
set a to "09" as number set b to a + 1 if b is less than "10" then set b to "0" & b end if get b as text
is this the quickest way to get a result that is in 2-digits (not counting 3 or more digit versions)
i mean:
set a to "09" as number set b to a + 1
will get you b as one digit
Typically done like this.
set n to 9
set leadingZeroForm to (text -1 through -2 of ("00" & n))- web _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden
| References: | |
| >Re: Offset in list (From: Nigel Garvey <email@hidden>) | |
| >numbers and prefix zero (From: Christian Vinaa <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.