home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!trlabs!agt!news
- From: Allen Winter <AWINTER1@agt.ab.ca>
- Subject: Re: Strange behavior
- Message-ID: <1992Dec22.174452.24640@agt.uucp>
- X-Xxdate: Tue, 22 Dec 92 10:35:49 GMT
- Sender: news@agt.uucp
- Nntp-Posting-Host: 128.9.32.10
- Organization: AGT Ltd
- X-Useragent: Nuntius v1.1.1d9
- References: <1992Dec15.230937.599@newshost.lanl.gov>
- Date: Tue, 22 Dec 92 17:44:52 GMT
- Lines: 29
-
- In article <1992Dec15.230937.599@newshost.lanl.gov> David G. Simmons,
- davids@gardener.lanl.gov writes:
- >on fooBar cdNo
- > put line 1 of bg fld "pweek" of cd cdNo + line 1 of bg fld "aweek" of
- cd cdNo
- > into temp1
- >end fooBar
- >
- >I have MANY lines before this that use the "bg fld XX of cd cdNo"
- reference
- >without difficulty. However, whenever I get to THIS particular line,
- >I get a "No such card" message. I can comment out this line, and
- subsequent
- >lines with this SAME syntax work just fine. So what the hell is wrong?
-
- I occasionally have similar problems when trying to reference several
- levels down (e.g line x of field y of card z). I have found that the
- judicious use of brackets in the expression sometimes helps (but
- sometimes not). But what ALWAYS works is to break the instruction into
- several lines. e.g.:
-
- put bg fld "pweek" of cd cdNo into temp1
- put bg fld "aweek" of cd cdNo into temp2
- put line 1 of temp1 + line 1 of temp2 into temp3
-
-
- Allen Winter;
- AGT Ltd; R&D; Edmonton, Alberta
- AWINTER1@agt.ab.ca
-