Addressing variables in subroutines
Addressing variables in subroutines
- Subject: Addressing variables in subroutines
- From: Jan Bruners <email@hidden>
- Date: Thu, 20 Feb 2003 17:27:35 +0100
Hi all,
I am trying to write a script using a subroutine like this:
on zaehle(var1,var2)
tell application "FileMaker Pro"
show every record of database "scheine.fp5"
show (every record whose cell "ES_Note" is string1)
set string2 to count of records
end tell
end zaehle
zaehle(note1,sg1)
-- snip
The subroutine obviously uses the current value of the variables, which is ok for var1. But var2 should be treated as the variable's name (to modify the variable's value in the subroutine), not as var2's value.
I already defined both vars as global.
Any help?
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.