I want to use Ilogic to construct a code part name.
My question is perform a code of about 12 characters. For example the parameter "Lenght" is 600mm but in the expressione result It must be "000000000600" (a string of 12 characters)
Thank you in advance
Go to Solution.
I'm kinda bored waiting for a reply to my own thread, hence spamming what might not be replies to peoples questions, anyway:
Private Sub TestFormat()
Dim length As Integer
length = 600
Dim code As String
code = Format(600, "000000000000")
Thank you very much and sorry if I read your response delay
Tomorrow I'll test it
Yes it work so fine but if my "lengt" is not a number.
For ex: "A600" and i wont to convert it in "00000000A600"
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.