AnsweredAssumed Answered

Learn to LOOP

Question asked by BetoBoton on Aug 19, 2009
Latest reply on Aug 19, 2009 by BetoBoton

Title

Learn to LOOP

Post

Ok Here is a good rookie question:

 

Scenario:

I have a script that converts a Longitude string to a numeric value.

 

I want to create another script that calls this script and set the resulting calculated value to a field in my table (table::LongInSeconds)

Here I want to assign ALL Records in this table to this value.

 

How do you efficiently loop all records for this calculation to occur?

 

 

idea 1 

GoToRecord (Next) 

If [Get (recordnumber) = Get (foundcount) ]

Exit Script [] 

Endif

GoToRecord (Next) 

Perform Script Calculation

(How do you loop here? )

===============

 

idea 2 

Loop

GoToRecord (Next) 

Perform Script Calculation

(how do you break not go go endless?)

EndLoop 

 

 

 

OR it is something I'm too tired to figure it out?

 

Thanks for any suggestions

 

Outcomes