home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / hypercar / 4648 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.6 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: Still need help on ref'ing btn
  5. Message-ID: <1992Dec22.173731.24527@agt.uucp>
  6. X-Xxdate: Tue, 22 Dec 92 09:58:30 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: <1gm1ciINNagk@uniwa.uwa.edu.au>
  12. Date: Tue, 22 Dec 92 17:37:31 GMT
  13. Lines: 29
  14.  
  15. In article <1gmo08INNsl0@uniwa.uwa.edu.au> Steven P Wilkinson,
  16. spw@uniwa.uwa.edu.au writes:
  17. >Now if I refer to cd btn "23" (also its name) then unfortunately
  18. >hypercard assumes I am talking about the btn with id 5432 when in
  19. >fact I want to talk about the btn with id 2233 whose name is "23".
  20.  
  21. I tried out the same operation (i.e. referring to a button name, which is
  22. identical to the NUMBER of another button) and it worked OK for me.  Are
  23. you putting quotes around the number when using it as a name?   e.g.
  24. after giving a button the NAME of "3":
  25.  
  26.   get the rect of card button "3" -- this does NOT get the rect of card
  27. button 3
  28.  
  29. If this still doesn't work and you need to work around the problem,
  30. concatenate a word to the end of the number to create a name that now
  31. looks like text.   e.g.:
  32.  
  33. put "xxx" into Text
  34. set the name of button id 123 to loopCounter && Text -- button name = "23
  35. xxx"
  36.  
  37. The button name still has the number as word 1 of the name, if this
  38. important in the rest of your scripts, but there is now no way for it to
  39. be confused with a number.
  40.  
  41. Allen Winter;   
  42.           AGT Ltd; R&D; Edmonton, Alberta
  43.           AWINTER1@agt.ab.ca
  44.