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

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!enterpoop.mit.edu!micro-heart-of-gold.mit.edu!uw-beaver!uw-coco!nwnexus!tbenedic
  3. From: Tom Benedict <tbenedic@halcyon.com>
  4. Subject: Re: Need equivalents to common data structures
  5. Message-ID: <iePgwB1w165w@halcyon.com>
  6. Originator: bbs@halcyon.com
  7. Sender: sso@nwnexus.WA.COM (System Security Officer)
  8. Organization: The 23:00 News and Mail Service
  9. References: <92361.19301534A6J53@CMUVM.CSV.CMICH.EDU>
  10. Date: Sun, 27 Dec 1992 22:23:53 GMT
  11. Lines: 40
  12.  
  13. CHUCK WILLIAMS <34A6J53@CMUVM.CSV.CMICH.EDU> writes:
  14.  
  15. > Hello Geniuses,
  16. > I am having a hard time getting used to hypertalk.  I think it is
  17. > very intuitive and easy to use, but I wish it had arrays, records,
  18. > you know, good things like that.  What I need is to be able to create
  19. > a queue that will hold a list of people who are waiting for a
  20. > computer (this is for a computer lab.)  When a current users time
  21. > is up, I have a flag that will alert me to that fact.  What I would like
  22. > to do is be able to move the first person in the queue to that available
  23. > machine. The problem is I don't know how.  Also, one more question.  When
  24. > I ask for student ID input (via the ask cmd), does it take the input as a
  25. > character string or numeric (the input would be something like 21345679?)
  26. > If it does read it as a number, how would I convert it to a character string?
  27. > Hope these aren't rudimentary questions, I couldn't find the answers in the
  28. > scripting guide.  Thanks for any help you can give.
  29. > Chuck
  30. > P.S. Can you define arrays in hypercard?  Or are they just fields you
  31. > must reference one char at a time.
  32.  
  33.  Data typing is handled transparently by HyperCard. You don't have to 
  34. worry whether you're working with number or text. HyperCard takes care of 
  35. it for you (at least in most cases! They exceptions are obscure and not 
  36. important for most users.) If it is imp;ortant to make sure that a string 
  37. is treated as characters then you should enclose it within double 
  38. quotation marks.
  39. You're right about lack of array manipulation tools in Hypercard. 
  40. HyperTalk chunk expressions can help you abit but you're really stuck 
  41. with dealing with data one chunka t a time.
  42. You're computer lab queue management system sounds rather straight 
  43. forward. I may not understand exactly what your needs are.
  44. Do you want to do this over a network? Do you want to have each machine 
  45. send a message to a central server when it's free?  That is a little more 
  46. work but can be done with AppleTalk XCMDs or via AppleEvents. 
  47.  
  48. Tom Benedict
  49.