home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / hypercar / 4650 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!trlabs!agt!news
  3. From: Allen Winter <AWINTER1@agt.ab.ca>
  4. Subject: Re: Strange behavior
  5. Message-ID: <1992Dec22.174452.24640@agt.uucp>
  6. X-Xxdate: Tue, 22 Dec 92 10:35:49 GMT
  7. Sender: news@agt.uucp
  8. Nntp-Posting-Host: 128.9.32.10
  9. Organization: AGT Ltd
  10. X-Useragent: Nuntius v1.1.1d9
  11. References: <1992Dec15.230937.599@newshost.lanl.gov>
  12. Date: Tue, 22 Dec 92 17:44:52 GMT
  13. Lines: 29
  14.  
  15. In article <1992Dec15.230937.599@newshost.lanl.gov> David G. Simmons,
  16. davids@gardener.lanl.gov writes:
  17. >on fooBar cdNo
  18. >   put line 1 of bg fld "pweek" of cd cdNo + line 1 of bg fld "aweek" of
  19. cd cdNo
  20. >    into temp1
  21. >end fooBar
  22. >
  23. >I have MANY lines before this that use the "bg fld XX of cd cdNo"
  24. reference
  25. >without difficulty.  However, whenever I get to THIS particular line,
  26. >I get a "No such card" message.  I can comment out this line, and
  27. subsequent
  28. >lines with this SAME syntax work just fine.  So what the hell is wrong?
  29.  
  30. I occasionally have similar problems when trying to reference several
  31. levels down (e.g line x of field y of card z).  I have found that the
  32. judicious use of brackets in the expression sometimes helps (but
  33. sometimes not).  But what ALWAYS works is to break the instruction into
  34. several lines.  e.g.:
  35.  
  36.    put bg fld "pweek" of cd cdNo into temp1
  37.    put bg fld "aweek" of cd cdNo into temp2
  38.    put line 1 of temp1 + line 1 of temp2 into temp3
  39.  
  40.  
  41. Allen Winter;   
  42.           AGT Ltd; R&D; Edmonton, Alberta
  43.           AWINTER1@agt.ab.ca
  44.