Thread: Crystal Reports Help

  1. #1
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Crystal Reports Help

    I've got a crystal report that I'm trying to use in a program I'm writing.

    The problem I have relates to the use of Parameters. I have a String based field in a database that I want to filter against certain strings I enter as parameters.

    If I use a single value parameter, it works a treat

    Code:
    {?Name} in {misc.Name}
    But if I want to use {?Name} as a multi value parameter, it needs to used as an array ({?Name}[i]).

    I'm not used to this syntax (some type of screwed up javascript), and every method I've tried to loop through and do anything seems to either throw an error or not work properly.

    It doesnt seem to have a debugger either so that doesnt help!

    Any suggestions?

    (Crystal Reports 9)

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Forget it. You spend ages battling with something, then you make a tiny alteration and it works:

    Code:
    Local numberVar x;
    Local booleanVar b := false;
    for x := 1 to Count({?Name}) do 
    (
        if {?Name}[x] in {misc.Name} then b:= true;
    );
    b
    Still a pretty wierd syntax IMHO.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to set font Roman 10cpi in Crystal Reports
    By Rajesh.Prajapat in forum C# Programming
    Replies: 0
    Last Post: 10-15-2008, 12:00 AM
  2. C# VS 2005 - Crystal reports question
    By jcrcarmo in forum C# Programming
    Replies: 1
    Last Post: 03-02-2006, 02:35 AM
  3. Crystal reports from winapi
    By knutso in forum Windows Programming
    Replies: 4
    Last Post: 04-13-2005, 09:40 AM
  4. crystal reports in vb.net
    By beely in forum Windows Programming
    Replies: 0
    Last Post: 01-06-2004, 03:37 AM