Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

nested loops

Featured Replies

I am writing a script to populate dates and time of day.

They need to be filled in to serve as a basis for

the rest of the layout (to duplicate the form the customer

already uses).

4/21/2003 7:00-7:30

4/21/2003 7:30-8:00

""""""""" """""""""

4/21/2003 3:00-3:30

4/22/2003 7:00-7:30

I wrote the inner time loop and tested it.

It works well and breaks as it should.

I added the outer date advance loop and it refuses to work.

The global counter I used for the date break point advances once

and the time loop never stops.

The result is I have to break into the script and I have the

correct dates and times for the first date and

several hundred records with the second date and all the times

repeating over and over and over...

Are nested loops taboo?

I know the coding is OK from running it in a C program.

Any help will be greatly appreciated.

  • Author

Well, I posted before I gave up.

Sorry.

I put the inner loop in a sub-script and it works fine.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.