Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get certain value in a string parameter..

Status
Not open for further replies.

Norviking

Programmer
Nov 2, 2002
33
0
0
NO

Hi..

If I understand correctly, when I send a parameter to my report, where I have declared a field to be a multiple value, I can send a String Array to that field??

But if I would make me a formula in my report, how can I get a certain value in that string[] that I pass????

My code.

ArrayList alStuff = new ArrayList();
string[] aStuff;
string sStuff = "";

alStuff.Add("test2");
alStuff.Add("test3");
alStuff.Add("test4");


aStuff = (string[])alStuff.ToArray(sStuff.GetType());
sStuff = string.Join("\r\n", (string[])aStuff);

....SetParameterValue("stringarray",sStuff);

I then make a formual field in my report. How can I set this filed to be ie. "test3"??????

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top