Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

String length less than 0 or not an integer

Folks,

I'm pretty new to CR programming. I have 2 queries.

1. The application passes 2 (start and end dates) parameters in String format to CR. I need to convert the them into date format for the database to filter and retrieve the relevant accordingly.

During execution the system errors out " String length less than 0 or not an integer".

Here's the code for processing the startdate parameter. The same logic holds good for enddate as well.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

StringVar MM := Left({@ID650},InStr({@ID650},"/") -1);

StringVar YY := Right({@ID650}, InStr({@ID650},"/") -1);

NumberVar LOFF := InStr({@ID650},"/") +1 ;

StringVar DD := Mid({@ID650},LOFF,InStr({@ID650},"/") -1);

CDate(YY+MM+DD)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

*PS -> ID650 is a form field which is accessible within CR ENV.*

2. How do I debug / trace a Crystal Reports Report execution?

I'm a little short on time. I'd appreciate an early response / resolution.

Regards,

Balaji K

Former Member
Not what you were looking for? View more on this topic or Ask a question