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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:23:04+00:00 2026-05-27T11:23:04+00:00

I have the following formula named @newitemQuant : WhileReadingRecords; StringVar text := Totext (

  • 0

I have the following formula named @newitemQuant:

WhileReadingRecords;
StringVar text := Totext ( {AR_SalesBySalesPersonDenim;1.quantity} , 6 , ""  )  ;  
NumberVar end  := length ( text ) ;
NumberVar clip :=

    (if  Val ( text [ end - 6 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 5 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 4 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 3 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 2 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 1 to end ] ) = 0 then 1 else 0 ) +
    (if  Val ( text [ end - 0 to end ] ) = 0 then 1 else 0 )  ;

text [ 1 to Length ( text ) - clip ]

This basically converts my database field {AR_SalesBySalesPersonDenim;1.quantity} with a NUMBER datatype to STRING before it manipulates with it. And on the report shows the resulting STRING.

Now I want to place a SUMMARY of resulting string field on the report. Can’t achieve that.

I have tried using ToNumber() within the same formula as well as a new formula:

numbervar fVal;
fVal := ToNumber({@newitemQuant}). 

But no progress.
Thanks 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-05-27T11:23:04+00:00Added an answer on May 27, 2026 at 11:23 am

    I found the answer.

    Basically to hanlde the number of decimals in your number on the report, just right click the field select Format Object -> Number tab -> in the Decimals formula -> enter

    If CurrentFieldValue = Int(CurrentFieldValue) Then
    0 
    else
    2
    

    Done. Where 2 is the max number of decimals you want to show in anycase.

    Thanks

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

Sidebar

Related Questions

I have the following in my formula field: toText(((Sum ({DataTable1.Ending_Value}, {DataTable1.Name})) - (Sum ({DataTable1.Starting_Value},
I have the following formula float mean = (r+b+g)/3/255.0f; I want to speed it
So: I have the following function, adapted from a formula found online, which takes
In excel 2007, I have a formula in a cell like the following: =COUNTIFS('2008-10-31'!$C:$C;>=&'$A7)
I have following text in a file 23456789 When I tried to replace the
Suppose that I have the following mapping with a formula property: <class name=Planet table=planets>
I have the following proprty <property name=Allocated type=decimal formula=(select sum(a.AllocationAmount) from Allocation a where
I have the following formula in LaTeX, based on Fisher's Exact Test . (
I have the following formula =IF((GLOBAL_DATE-30)<G2,1 Month,IF((GLOBAL_DATE-60)<G2,2 Month,IF((GLOBAL_DATE-90)<G2,3 Month,Older Than 3 Months))) and I
So I have created the following code snippet to run in a formula to

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.