Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Populate an array with only unique values
Oldest Post First
Newest Post First
Author
Message
pbengtss
Newbie
Joined: 18 May 2016
Online Status: Offline
Posts: 22
Topic: Populate an array with only unique values
Posted: 22 May 2016 at 10:49pm
Is there an easy way to populate an array variable with only unique values from a field? No specific order is necessary.
IP Logged
pbengtss
Newbie
Joined: 18 May 2016
Online Status: Offline
Posts: 22
Posted: 23 May 2016 at 2:17am
I found a way:
WhileReadingRecords;
StringVar Array ArticlesVar;
NumberVar i;
IF NOT ({db.ArtNr} IN ArticlesVar) THEN
(
i:=i+1;
ReDim Preserve ArticlesVar [i];
ArticlesVar[i]:={db.ArtNr};
);
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.031 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.