Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8384069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:19:03+00:00 2026-06-09T17:19:03+00:00

using Crystal XI I have two arrays – one captures a list of timepoints

  • 0

using Crystal XI

I have two arrays – one captures a list of timepoints the other captures the times associated with them.

I need to associate the two so that the output looks like

timepoint[1] - time [1]  - timepoint[2] - timepoint[2]; 

timepoint[3] - time[3]  -  timepoint[4] - timepoint[4];

so i wronte the following code – the arrays are intitialized in the header then loaded with data in the details section and then displayed in the group footer (three formula trick). I can display the data in the two arrays seperatly ok

(as timepoint[1], timepoint[2], etc)

the issue only arrises when trying to combine the two. the code below only prints the last two records in the array for the gorup instead of all of the records.
so if there are 5 timepoints and 5 times the code below displays

timepoint[4]-time[4] – timepoint[5]-time[5]

I will have to eventually perform a calculation between the two associated date times but for now just trying to get the association and display working.

Shared stringVar array Timepoints;
Shared DateTimeVar array Times;
local stringVar combineStr;
local numbervar i;

For i:=1 to UBound(Times)-2 do   
(combineStr := Timepoints[i] + ','+ totext(Times[i]) + '-' + 
Timepoints[i+1] + totext(Times[i+1]) + ',');
 combineStr;

thanks for looking at this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:19:05+00:00Added an answer on June 9, 2026 at 5:19 pm

    You’re overwriting the previous value of the combineStr variable with each iteration. You need to do this:

    .
    .
    .
    For i:=1 to UBound(Times)-2 do   
    (combineStr := combineStr + Timepoints[i] + ','+ totext(Times[i]) + '-' + 
    Timepoints[i+1] + totext(Times[i+1]) + ',');
    
    combineStr;

    A few other things: 1. You’ll want to concatenate a newline character, chr(10), instead of a comma between iterations to display like your example in the question. 2. You need to add “step 2” to your for-loop otherwise you’ll be printing out timepoints twice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Crystal Report 12 in one of our projects. Currently I need
I have a C# 2010 application that contains a report created using Crystal Reports
I am using Crystal Report 2008 with C# , have a WinForm and want
I'm using Visual Studio 2005 with VB.NET. I have a number of Crystal Reports,
I have some reports developed using Crystal Reports 12 and I want to version
I'm using Crystal Reports for Eclipse 2.0.4 and I have a problem. I use
I'm using Crystal Report with VB.NET in Visual Studio 2005. I have report that
I have some Crystal Reports that were created using Crystal (external to Visual Studio)
I'm using crystal reports 10 and have an issue with a duplex printer. Basically
I have to make a new report using crystal report8.5 . I have created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.