Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

Re: MAP scripting functoid

BizTalk 2010

This group is for all content related to BizTalk Server 2010. This includes a forum and samples.

MAP scripting functoid

Answered (Not Verified) This question has suggested answer(s)

Hi all,

I have this scripting functoid in one of my maps:

public string MyConcat(string Number)
{

if (Number.Length == 2)
{
    Number = "00" + Number;
}

if (Number.Length == 3)
{
    Number = "0" + Number;
}
 
return Number;

}

 

Where I want to add zeros in front of the number if its less than 4 digits. This doesn't seem to work...

Best Reards

Matt

Edit
All Replies
Page 1 of 1 (5 items)