🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18696

Re: HyperCard file reading test

#18696
From: Ed Anson
Date: Wed, 02 Sep 1987 17:26
25 lines
1656 bytes
In article <3768@sdcsvax.UCSD.EDU> graifer@net1.UUCP (Dan Graifer) writes:
>on mouseUp
>  open file "Test Text"
>  read from file "Test Text" until return
>  put size of it into message
>  close file "Test Text"
>end mouseUp
>
>this rule always gives a 0 result, even if I change the "until return" to
>"for 100".

Size is a stack property.  I ran the same script, and got different results.
The first line of the file "Test Text" was interpreted as the name of a
stack.  The size of that stack was placed in the message box.  In other
words, HyperTalk dereferenced "it" before applying it as a parameter.

Of course, it is possible to say
  put it into message
and see the first line of your file.

Now, has anybody figured out how to determine the length of a record?
-- 
=====================================================================
   Ed Anson,    Calcomp Display Products Division,    Hudson NH 03051
   (603) 885-8712,      anson@elrond.CalComp.COM
Technical Details
Message-ID: <1210@elrond.CalComp.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!decvax!savax!elrond!anson
References: <100@f.gp.cs.cmu.edu> <3768@sdcsvax.UCSD.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!decvax!savax!elrond!anson
From: anson@elrond.CalComp.COM (Ed Anson)
Newsgroups: comp.sys.mac
Subject: Re: HyperCard file reading test
Message-ID: <1210@elrond.CalComp.COM>
Date: Wed, 2-Sep-87 13:26:38 EDT
Article-I.D.: elrond.1210
Posted: Wed Sep  2 13:26:38 1987
Date-Received: Sat, 5-Sep-87 06:49:40 EDT
References: <100@f.gp.cs.cmu.edu> <3768@sdcsvax.UCSD.EDU>
Reply-To: anson@elrond.UUCP (Ed Anson)
Distribution: na
Organization: Calcomp Display Products Division, Hudson, NH, USA
Lines: 25
Keywords: How NOT to read files with HyperCard!