freecolours Posted July 23, 2003 Posted July 23, 2003 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)
-Queue- Posted July 23, 2003 Posted July 23, 2003 Have you tried Insert Calculated Result into a global number field? I'm assuming your gGlobal is a text field, correct?
-Queue- Posted July 23, 2003 Posted July 23, 2003 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.
freecolours Posted July 26, 2003 Author Posted July 26, 2003 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now