Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping in FileMaker 8 scripts
#1
I'm playing with the demo, and have come up the equivalent of the following fake code:

Set $Year=2004
Loop
$Year = $Year+1
if $Year = Year ( Get (CurrentDate))
exit loop
end if
End Loop

However, I've gotten used to:

for $Year=2004 to Year ( Get (CurrentDate))
do something here
next $Year

The above is both shorter and lot easier to write. Does FM do anything comparable?

Thanks,

GtDS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)