List Info

Thread: How to convert a string in to ReportarameterValue []




How to convert a string in to ReportarameterValue []
user name
2006-12-30 12:41:06
Hi experts,
I am taking parameters from user for report and storing them
in a
string. After that I am doing some operation on that, now I
want to
convert that string in to parameter (ii is a object of
ReportarameterValue []). My code is compiling successfully
but when I
am passing values it is throwing exception that I cant not
cast it.
My code is like this....

 String paraVal = paraVal.Substring(0,
paraVal.LastIndexOf(":;:"));
 object obj = (object)paraVal;
 parameter = (ParameterValue[])obj;

in last line it is giving error.

Any help will be appreciated.

Thanks and Regards
Dinesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )