troubleshooting Question

VB.Net: How to Remove Leading Zeroes

Avatar of Software Engineer
Software Engineer asked on
Visual Basic.NETProgrammingSoftwareVB ScriptC#
5 Comments1 Solution82 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 our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
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 1 Answer 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