Param() Oddity

Richard Gaskin ambassador at
Thu Sep 9 23:30:06 EDT 2004

Arthur Urban wrote:

> I'm trying to use the param() function, but it is behaving "badly". Here is
> the meat of the issue. Consider this fragment, param(1) = 'card "CardName"
> verified in variable watcher':
>   put fld "F" of param(1) is empty into x
> The above code blows up stating that fld "F" cannot be found. However, if I
> add a line as follows:
>   put param(1) into tCard
>   put fld "F" of tCard is empty into x
> This works!(?) Why can't I just use param(1)?

I'm not sure this will help in this case, but often you can force the 
interpreter to process parts of a statement by using parentheses:

   put (fld "f" of (param(1)) is empty) into x

  Richard Gaskin
  Fourth World Media Corporation
  Ambassador at

More information about the use-livecode mailing list