Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Array syntax

Posted on 2011-09-08
2
Medium Priority
?
270 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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. …
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

609 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