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

Simple 'For' loop question... 1

Status
Not open for further replies.

rodbac

Programmer
Jun 21, 2001
23
US
I am experimenting trying to get a simple 'For' loop (crystal syntax) to just display a series of numbers/dates across the top of the report. I have tried the following:

NumberVar i;
For i := 1 to 31 Do
(
If i = Day({Ideas.submitted}) then
Day({Ideas.submitted})
Else
i
);

I continues to return "True" (once) with nothing else displayed. Can you steer me in the right direction here? TIA. -rodbac
 
I am not sure what you are trying to display, but you will need another variable to store the value you want to display, and then you should have that variable name be after your last semicolon. Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Hi, I am trying to format a report as below:

Type UOM Price
-----------------------------------------
A Lot A 50.00
B Lot A as above in Lot A
C Lot A as above in Lot A
D Lot B 75.00
E Lot B as above in Lot B
F Unit 45.00
G Lot A as above in Lot A
H Unit 25.00
I Unit 80.00
J Lot B as above in Lot B
If UOM is "Unit", display the price as it is. If UOM is a "Lot Type"...I have to disply the price for first instance and display "as above..." in the other instances.
I'd appreciate if anyone could help me. Thanks.



 
Parnini,

Please start a new thread for this question, instead of adding to an existing thread. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top