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

Date Parameter Printing

Status
Not open for further replies.

caymanuser

IS-IT--Management
Sep 26, 2002
14
CA
Data is selected based upon a number of discrete dates entered via a parameter {?Dater} The selection works fine.I have the following formula to print the dates entered.

NumberVar Counter;
StringVar Message :="";
For counter := 1 to Count({?Dater}) Step 1 Do
(Message := Message & totext({?Dater}[counter],"mm-dd-yy") + ", ");
Left(Message, Length(Message) - 2)

The result is as follows
mm-24-03, mm-10-03, mm-15-03

The dates entered were 03/24/03, 04/10/03, 05/15/03

Any help would be appreciated

 
Replace your fourth line of code as follows:

(Message := Message & totext({?Dater}[counter]) + ", ");
Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
Use capital M's for months.

Rather than use a loop, consider setting the default date display and using:

join({?Dater},", ")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top