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 7905995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:43:17+00:00 2026-06-03T10:43:17+00:00

I have a unique question that I am not sure is even possible. I

  • 0

I have a unique question that I am not sure is even possible.

I have a report that has several Group Headers per group. What I would like to do is have select Group Headers (GH1a, GH1p, GH1w…) have an auto incremented number, which I will then turn into an roman numeral using roman(@function). The numbering would be independent on the number of actual groups, only Group Headers. There could be one to 100,000 records (groups) returned to the report but for each record(group) the Group Headers within each group would have select Group Headers numbered the same

EX:

GROUP A

GH1a:  I
GH1b:  
GH1c:  II
GH1d:  III
GH1e:
GH1f:
GH1g:  IV

GROUP B

GH1a:  I
GH1b:  
GH1c:  II
GH1d:  III
GH1e:
GH1f:
GH1g:  IV

etc….

Any help would be appreciated. I have tried to use a global variable x in both the report header and each GH that I want incremented using the following code:

in reportheader and/or GH1a //@iCountreset

    Global NumberVar iCount:=1;

in each GH that I want incremented //@iCounted

    Global Numbervar iCount;
    iCount:= iCount+1;

then a second one to romanize it //@RomanCount

    roman(@iCounted);

I currently have them hard coded but am trying to combine several rpt files into one where the only difference would be some GH sections would be suppressed and therefore not counted in the numbering.

Thank you in advance.

  • 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-03T10:43:20+00:00Added an answer on June 3, 2026 at 10:43 am
    //{@reset}
    WhilePrintingRecords;
    Global Numbervar G1:=1;
    
    //{@increment}
    WhilePrintingRecords;
    Global Numbervar G1:=G1+1;
    
    //{@roman}
    Roman({@increment})
    

    ** edit **

    Ryan’s comment was correct. My new approach uses subreports to increment a shared variable, which works.

    Steps:

    add {@reset} GH1a of ‘main’ report; suppress

    //{@reset}
    WhilePrintingRecords;
    Shared Numbervar G1:=0;
    

    create a subreport; place it in GH1b; add these formulae to it:

    add to Details section; suppress:

    //{@increment}
    WhilePrintingRecords;
    Shared Numbervar G1:=G1+1;
    

    add to Details section:

    //{@roman}
    Roman({@increment})
    

    You will need to add this subreport to each section that requires a Roman-numeral calculation. To make this process a little less painful, export the subreport (‘save subreport as’), then reinsert it.

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

Sidebar

Related Questions

Possible Duplicate: optimal algorithm for finding unique divisors I have asked this question before,
I'm wondering if it is possible to have unique characters that cannot be seen
I have a unique requirement that I hope is possible with LINQ to SQL.
i'm pretty sure that this question has allready been asked (but i didn't find
Not sure if that makes sense, but say I have this code... $updateSql =
I'm not sure how to better phrase this question so it's possible I missed
I'm sure this question is not unique, but I've not found other sources to
I'm not sure if that's the right question, but what I'm trying to do
I have an SQL database with a set of tables that have Unique Id's.
I have a unique industrial application where I do not want the Windows CE

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.