How to use zeroed prefixed string?
-
Sorry for the silly question, but I can't find the answer elsewhere:
I have a Dinamic Component with this property:
ItemCode = "ID" & CHOOSE(Index,"002","008","020")
The formula always delete the beginning zeros
(i.e. ItemCode returned value is "2" or "8" or "20")I've tried with some workaround (using X instead of zeros and then substitute) without success, but I understand it depends on how text strings are treathed by SketchUp formulas.
Please note that I've setted the property as TEXT (and not default Text)
How can I specify SketchUp formulas not to delete the preceding zeros ?
-
I did some experimenting just as you did, and it doesn't appear to be possible to display zero-padded strings. I also don't see any functions that would help.
http://sketchup.google.com/support/bin/answer.py?hl=en&answer=108144
-
CHOOSE with OPTIONINDEX() returns INDEX, so it might be of use to you...
Since VALUE(text) converts text to a number make sure there's nothing doing that...
Does #002 work and strip off the # ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement