Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!ko0g+ From: ko0g+@andrew.cmu.edu (Kevin O'Neill) Newsgroups: comp.sys.ibm.pc.misc Subject: Basic BASICA question Message-ID: Date: 6 Dec 90 15:34:35 GMT Organization: School of Urban and Public Affairs, Carnegie Mellon, Pittsburgh, PA Lines: 21 I may be in the wrong place, but I'll give it a try anyway. I am trying my hand at writing a program in IBM BASICA that I had previously done for an Apple, and I'm having a problem figuring out the routine for saving the data created in the program to a file. The problem is that about 50 variables are defined by the program, but I haven't figured out how to get the FIELD statements to work properly. For example, I try ... 100 OPEN "DATAFILE" 200 FIELD #1,3 AS MN$, 4 AS AP$, 4 AS RG$, {etc.} 300 LSET MN$=NM$: AP$=A1$: RG$=R1$: {etc.} 400 PUT #1,1 500 CLOSE I cannot get the fields set for all of the variables on a single line; I've tried a second FIELD line, but it overwrites the variables from part of the first line. What am I doing wrong, and how do I correct it?