Solved

Array syntax

Posted on 2011-09-08
2
261 Views
Last Modified: 2012-05-12
What's the issue with my syntax here ? It says i'm missing ")"


whileprintingrecords;
stringvar array desc;
numbervar array cost;
numbervar counter;

if {ListOfProfDetailCost.PresCostType1__IsHardCost} = false then
(
    counter := counter +1
    if counter <= 1000 then
    (
        redim preserve desc[counter];
        desc[counter] :={ListOfProfDetailCost.CostCard1__CostType1__SummarizeToRel__Description};
        redim preserve cost[counter];
        cost[counter] :={ListOfProfDetailCost.PresAmt};
    ));
0
Comment
Question by:mowit
  • 2
2 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 36507569
Try adding a ; between the )) at the end

mlmcc
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36507578
Actually missing the ; before the second if

whileprintingrecords;
stringvar array desc;
numbervar array cost;
numbervar counter;

if {ListOfProfDetailCost.PresCostType1__IsHardCost} = false then
(
    counter := counter +1;   <-----------
    if counter <= 1000 then
    (
        redim preserve desc[counter];
        desc[counter] :={ListOfProfDetailCost.CostCard1__CostType1__SummarizeToRel__Description};
        redim preserve cost[counter];
        cost[counter] :={ListOfProfDetailCost.PresAmt};
    ));

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now