Inline CSharp scripting functoid
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Inline CSharp scripting functoid




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Inline CSharp scripting functoid  
Pankaj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-15-05 12:48 PM

I am using a simple inline CSharp scripting functoid

public string Convert(string str)
{
int intstr = 0 ;
try
{
intstr = System.Convert.ToInt32(str);
}
catch(Exception ex)
{
ex=ex;
return str;
}
return intstr.ToString();
}

I am configuring an input xml field element as an input to this functoid.
Some how I am not able to get the desired output.
The purpose is , if the input element is integer with preceding zeroes,
remove the zeroes else treat input as a string.

I am not sure how this function's 'Convert(string str)' input parameters get
set to the input of the functoid.

Let me know what is going wrong?

Regards





[ Post a follow-up to this message ]



    RE: Inline CSharp scripting functoid  
Nicholas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-15-05 10:59 PM

Just wondering but is the name of the field your passing actually str? I've
been tripped up by these types of stupid issues several times myself. If you
replace str with the name of the field you are linking to the functoid you
should be ok. Let me know how that works.

Nicholas

"Pankaj" wrote:

> I am using a simple inline CSharp scripting functoid
>
> public string Convert(string str)
> {
> int intstr = 0 ;
> try
> {
> intstr = System.Convert.ToInt32(str);
> }
> catch(Exception ex)
> {
>  ex=ex;
> return str;
> }
> return intstr.ToString();
> }
>
> I am configuring an input xml field element as an input to this functoid.
> Some how I am not able to get the desired output.
> The purpose is , if the input element is integer with preceding zeroes,
> remove the zeroes else treat input as a string.
>
> I am not sure how this function's 'Convert(string str)' input parameters g
et
> set to the input of the functoid.
>
> Let me know what is going wrong?
>
> Regards
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:04 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register