Solved

Array syntax

Posted on 2011-09-08
2
260 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 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

22 Experts available now in Live!

Get 1:1 Help Now