Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
|
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2008, 06:57 AM
Registered User
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Gettingerror while usingC# built in Function split

i have a variable MatchRuleFields whose message type is .Net class system.string
i am assigning MatchRuleFields ="a,b,c"
i have another variable Variable_1 whose message type is also .Net class system.string
when i try this statement
Variable_1=MatchRuleFields.Split(','); in expression shape in Biztalk server 2006
iam getting an error
cannot implicitly convert type 'System.String[]'to 'System.String'
how to correct this error


 
Old June 2nd, 2008, 07:52 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The error pretty much tells you the problem: you are trying to assign the return value of .Split (which is an array) to a variable of type string.

You need to declare Variable_1 as a string array such as:

string[] Variable_1 = MatchRuleFields.Split(',');


hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
split function equivalent asmotritsky SQL Server 2000 4 January 5th, 2009 08:40 AM
using the split function jd_erd Access 2 May 7th, 2007 09:59 PM
split function MunishBhatia ASP.NET 2.0 Professional 4 May 1st, 2007 10:05 AM
using 'Split' function p_gauri7 Crystal Reports 0 March 11th, 2005 01:02 PM
Split function Beulah ASP.NET 1.0 and 1.1 Basics 1 September 12th, 2003 09:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.