Having some problems when trying to loop through an aplha-numeric string where the leading zero's need to be replaced with nothing until it hits 1-9, then it would stop. This is what I have so far:
Code:
i = 0
lstrip_inv = InvoiceNum
For lstrip_inv = i to len(InvoiceNum)
lstrchar_inv = Mid(lstrip_inv, i, 1)
Select Case lstrchar_inv
Case <> chr(48)
End Select
Case chr(48) 'this is a zero, 0
'Do Nothing
Case Else
lcarry_inv = lcarry_inv & lstrchar_inv
End Select