[comp.sys.mac.hypercard] Dynamic variable names

jdevoto@Apple.COM (Jeanne A. E. DeVoto) (04/07/90)

In article <3158@oakhill.UUCP> tomj@oakhill.UUCP (Tom Johnson) writes:
>	do "put item x of p" & y & " into z"
>	(note that the space here   ^ is required for the parser)

The && operator concatenates with a space, so you can substitute
        do "put item x of p" && y && "into z"
for the above. Not functionally different from putting a space in the
literal, but it sometimes looks a little neater & is easier to read.

>Now for another small problem.
>[...]
>What I CAN'T get to work is this - return(x & "," & y)

(By the way, you don't need to enclose the return value expression in
parens.)

This works fine for me. I'm correct in assuming that x and y are variables
you've defined previously? Maybe you could post or mail additional information
about the script. What version of HyperCard are you using?
-- 
====== jeanne a. e. devoto ========================================
 jdevoto@apple.com  |  You may not distribute this article under a
 jdevoto@well.UUCP  |  compilation copyright without my permission.
___________________________________________________________________
 Apple Computer and I are not authorized  |        CI$: 72411,165
 to speak for each other.                 |  AppleLink: SQA.TEST