Jump to content

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

Recommended Posts

Posted

I'm trying to get this working for a while but I get stuck on one thing:

I run a loop script that sets numbers in a global field:

gGlobal = 5 + 8 + 10 +1.5 + 6 (those "+" are optional)

How can I sum up these numbers in a calculation? (In this case this would be 30.5)

Posted

Have you tried Insert Calculated Result into a global number field? I'm assuming your gGlobal is a text field, correct?

Posted

Why don't you just update the global field each time a new number is added? Set the global field to itself plus the next number.

Posted

smile.gif Yes, that's the correct answer! Thanks; this is my script:

Loop

Exit Loop If [TempRecNr02 = TempRecNr01]

Go to Record/Request/Page [TempRecNr02]

Set Field [_Key, " "]

Go to Field []

Set Field [_Key, SS#1::gLoginID & "?" & DateToText(Aanmaakdatum) & "?" & SS#1::gLoginID & " " & DateToText(Aanmaakdatum) & "?" & SS#1::gLogin]

Set Field [_Key, Substitute(_Key ; "-" ; "")]

Set Field [TempRecNr02, TempRecNr02 + 1]

End Loop

This topic is 7861 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.