Print Page | Close Window

Empty Field in Array

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22829
Printed Date: 25 Apr 2024 at 10:58pm


Topic: Empty Field in Array
Posted By: Sam12485
Subject: Empty Field in Array
Date 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}));



Replies:
Posted By: lockwelle
Date 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



Print Page | Close Window