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