IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Removing Leading Zero's Options · View
mbaile
Posted: Tuesday, December 4, 2018 9:38:43 PM
Rank: Newbie

Joined: 1/29/2018
Posts: 6
Location: USA
I'm trying to remove leading 0's at the beginning of a string. I found this post: https://www.altova.com/forum/default.aspx?g=posts&t=7 , but I can't seem to get it to work.

My function itself and what I have in the mapping look to just be the same which is likely why it's not working, but I cannot figure this one out. I'm sure it's something simple, but any input is appreciated. The first picture is the function itself, and the second is the function within the mapping.





mbaile attached the following image(s):
function.png
mapping.png

K101
Posted: Wednesday, December 5, 2018 9:25:08 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 564
You haven't read the whole discussion there, especially the part at the end where the function recursively calls itself inside the function. See the attached example.

File Attachment(s):
example.mfd (7kb) downloaded 366 time(s).


mbaile
Posted: Wednesday, December 5, 2018 1:59:40 PM
Rank: Newbie

Joined: 1/29/2018
Posts: 6
Location: USA
That's perfect, thank you!
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.