Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1875
  • Last Modified:

Crystal reports Viewer error: this array must be subscripted

Hello all,

When trying to pass parameters through a VB 6 application into the crystal reports viewer i get the error "This array must be subscripted. For example: Array[i]."

Any help appreciated,
Wilky.
0
LFMSupport
Asked:
LFMSupport
  • 4
  • 3
1 Solution
 
bdreed35Commented:
How is the parameter defined in Crystal? (Datatype, Values excepted - Discrete, Range, or both, )
What is the actual data you are trying to pass to the parameter from your VB app?
0
 
LFMSupportAuthor Commented:
Im passing through 2 Numeric values and a Date value, both of which are discrete.

Thanks for the reply and forgive me if I don't get back to you until tomorrow, if going home for the day.

Cheers,
Wilky.
0
 
bdreed35Commented:
Is your parameter in Crystal defined to allow multiple discrete values?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LFMSupportAuthor Commented:
Sorry, no its not.
0
 
bdreed35Commented:
Change it in Crystal to allow multiple discrete values and retest your app.
0
 
frodomanCommented:
bdreed is correct - the param must be set to allow multiple values.  If after making that change you're still getting the error please post the code you're using to pass the parameter.
0
 
LFMSupportAuthor Commented:
Ok, I've deleted the date parameter as it wasn't important anyway. The two numeric parameters can't accept multiple discrete values as the parameters were set when i made the command for the report.

Does this make it any clearer or do you want to see the code?

Thanks again,
Wilky.
0
 
LFMSupportAuthor Commented:
Got it,

thanks,
Wilky.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now