RE: interesting discovery (trying to get record labels as strings )
RE: interesting discovery (trying to get record labels as strings )
- Subject: RE: interesting discovery (trying to get record labels as strings )
- From: Olof Hellman <email@hidden>
- Date: Tue, 4 Dec 2001 11:15:02 -0800
>
Olof, I'm curious as to why the above is as complex as it is - is there a
>
reason for this? The following also works, and is somewhat shorter:
>
>
to extract_exact_usrf(theRecord, fieldName)
>
run script "on run{r}
>
return |" & fieldName & "| of r
>
end" with parameters {theRecord}
>
end extract_exact_usrf
>
>
extract_exact_usrf({|EU|:3, b:2}, "EU")
>
--> 3
Because I didn't think to try the 'with parameters' option of 'run script'
as a way of getting the record inside a dynamically generated script object.
This version is indeed much nicer.
- Olof