variable setting in repeat loop
variable setting in repeat loop
- Subject: variable setting in repeat loop
- From: Jan Bruners <email@hidden>
- Date: Thu, 20 Feb 2003 23:24:07 +0100
Hi all,
and another question (still learning, sorry). The following script should pack a list of variables with different values:
set noten to {note10, note13, note17, note20, note23, note27, note30, note33, note37, note40, note5} as list
global noten
set anzahlen to {sg10, sg13, sg17, sg20, sg23, sg27, sg30, sg33, sg37, sg40, sg5} as list
global anzahlen
on zaehle(string1)
tell application "FileMaker Pro"
show every record of database "scheine.fp5"
show (every record whose cell "ES_Note" is string1)
end tell
end zaehle
repeat with i from 1 to count items of noten
set thenote to item i of noten
zaehle(thenote)
set thezahl to item i of anzahlen
tell application "FileMaker Pro"
set thezahl to count of records
end tell
end repeat
Unfortunately, the variable "thezahl" will never feed any other variable, but instead take over the initial value of the other variables with every repeating run.
How can I prevent this?
Thanks,
Jan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.