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

Parameter passing from Delphi

Status
Not open for further replies.

Craigs

Programmer
May 1, 2001
19
0
0
AU
Hi all

Ok im running Delphi5 and using Crystal 8.5. I want to pass parameters from my delphi application to crystal reports i have the following lines of code which i thought would have worked but they give me an access voilation not sure why but they do. Any help would be good thanks.

Crpe1.ParamFields.add('Param1','test');
Crpe1.ParamFields.value := PARAMSTR(1);

 
Hi,
How about trying like this
crpe1.ParamFields.Add('Parameter1');
Crpe1.ParamFields.Value := 'CA';
Thanks,
Hamida
 
Hamida

Thanks for that but using the line
crpe1.ParamFields.Add('Parameter1');

It doesn't have enough parameters so it wont run at all, any other suggestions would be helpfull

thanks

Craig.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top