Solved

Array syntax

Posted on 2011-09-08
2
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 101

Expert Comment

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

mlmcc
0
 
LVL 101

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 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