[comp.sys.mac.hypercard] Exporting Text From Hc

Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) (12/07/90)

 From: eck@eniac.seas.upenn.edu (Hangnail Whipperwill)
Date: 5 Dec 90 05:43:11 GMT
Organization: University of Pennsylvania
Writes:
>Is there any way to send the reports from HC to a text file, for later
>editing and such, in either 1.2 or 2.0?
 
Yes, you want to use the OPEN, WRITE, and CLOSE commands. Thus:
open file "Ken"
write card field 12 to file "Ken"
close file "Ken"
 
Lets say you want to export all the info on card field 1 in each card of 
the stack you'd do something like this (each datum will be seperated by 
a return).
open file "foo"
go first card
repeat the number of cards in this stack times
  write card field 1 to file "Ken"
  write return to file "Ken" --could've done cd fld 1 && return, too.
  go next card
end repeat
close file "Ken"
 
Hope that helps.


--  

   	Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org
   	via The Black Cat's Shack's FidoNet<->Usenet Gateway
	    blkcat.fidonet.org   and   Fidonet 1:109/401