AnsweredAssumed Answered

Macro Conditional variables

Question asked by Cad Admin on Mar 18, 2016
Latest reply on Mar 18, 2016 by Deepak Gupta

I have a variable in a drawing DrwRev.  It reads the variable off of custom properties.  I need to check the property to different conditions to correct the users input error.  My company uses 2 digit revision levels and we have a lot of issues with people entering a single digit.


I currently have an if statement


if DrwRev < 10 Then DrwRev = "0" & DrwRev


This covers 99% of my issue, however sometimes i have people enter "0" when it should be "00"


And at the same time, if they entered 00 changes the DrwRev to 000


What is the best solution for the 0 00 issue? or am i going at this all wrong.