Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Empty Field in Array Post Reply Post New Topic
Author Message
Sam12485
Newbie
Newbie


Joined: 22 Aug 2019
Location: Germany
Online Status: Offline
Posts: 1
Quote Sam12485 Replybullet Topic: Empty Field in Array
    Posted: 01 Nov 2019 at 2:52am
Hello,

I got a question. I am using this Code to insert a special article into an array. Now i have a empty space and that article in my array. How can i get rid of that empty space?

Thanks for helping.


WhileReadingRecords;
global stringvar array art;
global numbervar artcounter = 0;

if ({@le_Artikel_Nummer} = "SA11524") Then
    (artcounter := artcounter + 1;

    (redim art[artcounter];

    art[artcounter] := {@le_Artikel_Nummer}));


Edited by Sam12485 - 01 Nov 2019 at 2:53am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 08 Nov 2019 at 10:40am
I would check the value before I add it to the array...aren't all the values SA11524, as that is the only value that can be added, if I read the code corrected.

HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.