troubleshooting Question

VB.Net: How to Remove Leading Zeroes

Avatar of Software Engineer
Software Engineer asked on
Programming Languages-OtherSoftwareProgrammingC#Visual Basic.NET
5 Comments2 Solutions82 ViewsLast Modified:
Hi There:

I work with a tool that imports data into an ERP app.  I believe that the tool uses VB.Net for scripts.

Anyway, I need to remove leading zeroes for a string field.  That field is called _ORDERNUM.

As an example, 000004015414 should import as 4015414 only.  There is no telling how many leading zeroes there will be for this string field.

I'd rather not use "variable programming" to do this.  There's got to be a simple script, such as "TRIM", that would do this.  But, I'm not familiar with such syntax.

So, hat programming syntax would be best to use?

Thank you!  Much appreciated!

Software Engineer
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros