Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Complex Calculation or I'm just thick...


This topic is 6591 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hello!

I am going insane trying to get the following function:

I need FM to automatically fill in a Bank transfer sheet. I’ve made a layout with all the fields set out to fill the sheet. These fields are all single Global fields because I can’t get the numbers in the right place on the layout otherwise.

What I want to be able to do is, enter a figure in the Amount field in any format (see below) and get FM to sort out the Cents (.00) via a calculation in Script Maker and add the Amount to the global fields.

E.G:

12534 to 12534.00

15684. to 15684.00

48652.4 to 48652.40

The reason for this is that the Bank sheet always needs the Cents as well.

I’m not very good at explaining my problem.

Please see in the Attached file.

Thank you [color:red]VERY much in advance.

Best regards.

Ron

Banksheet_Autofill.zip

Edited by Guest
Posted

12534.00 = 12534

It's only a matter of formatting the display. First, make your field a NUMBER field. Then, in Layout mode, format the number as decimal with 2 decimal digits.

Posted

OK, but how do I get it to enter the info in my Global fields?

I know its going to be a loooong thing in ScriptMaker but any advice would be greatly appreacated.

Regards

Ron

Posted

I don't understand your question - and I did not understand your file either. Why do you want to replicate the entered data? Perhaps you should explain what you actually need this solution to do, in terms of what is coming in and what do you need to come out.

Posted (edited)

Sorry for the comlicatons. :

Here a new updated file.

In the Amount Global field is a figure and in the Message Global field there is a Message, when Go is pressed then it should send those fields to the Globals (Amount .1, Amount .2...Message.1, Message.2... at the botom of the Layout.

Many Thanks!!!

Best regards.

Ron

Banksheet_Autofill.zip

Edited by Guest
Posted

I probably have, I just smacked it together - and continued to other tasks.

I think this fixes the flaws in reasoning:

Let(tt=

Middle ( Right("00000000"& Int(Extend ( aNumber )*100);9) ; Get ( CalculationRepetitionNumber ) ; 1 );

Case(tt or Extend ( aNumber )>10^(7-Get ( CalculationRepetitionNumber )) ;tt))

--sd

This topic is 6591 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.