Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Index out of bounds

Posted on by 3,027

Hi

  While CTr <= 10 do begin

      If glentry.accountname = accountname[ctr] then begin

Accountvalue[ctr] += Glentry.amount;

Found:= 'TRUE';

End;

CTr := CTr + 1;

End;

I

*This post is locked for comments

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Index out of bounds

    Hello,

    already i suggested u, assign

     Ctr := 1;

    then u will get.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Index out of bounds

    try with initiating from 1

    ctr := 1

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Index out of bounds

    Hi

     Yes Dimenson is 10 & i have initialed ctr := 0

    Thanks

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Index out of bounds

    Hello jsshivalik,

    Before While initialize CTr Like:

    CTr := 1;

    and also make sure accountname    and  Accountvalue  variable's Dimensions is 10

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Index out of bounds

    Check the array definition and variable ctr value

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans