[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

Array syntax

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
mowit
Asked:
mowit
  • 2
1 Solution
 
mlmccCommented:
Try adding a ; between the )) at the end

mlmcc
0
 
mlmccCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now