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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert string to number array, pass to subreport

Status
Not open for further replies.

ColinGregory

Technical User
Feb 16, 2001
39
US
Hello everyone

Is this possible?

I have a string in my report header (eg "452,563,1256") that I want to pass to a subreport as a set of numeric values that I can use to select the details of my subreport. The number of values in the string may change.

I've been working on this for two days. I'm sure I've tried every possible combination of parameters, shared variables. A straight forward link from the details of the main report to the sub report causes a not support error in Crystal. The ultimate aim is for the details in the subreport to be the same as the main report. My head hurts. Idiot proof replies please if possible to prevent melt down.

Many thanks
Colin

CR8 SQL server 2000
 
Look at the Split function to create your array. Try something like this:

Global Shared NumberVar Array YourArray :=
Split(YourString, ",")

I believe a shared global variable is visible to your sub report as well. Good Luck!

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top