Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!athena.cs.uga.edu!is From: is@athena.cs.uga.edu ( Bob Stearns) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: Basic BASICA question Message-ID: <1990Dec6.174259.5097@athena.cs.uga.edu> Date: 6 Dec 90 17:42:59 GMT References: Organization: University of Georgia, Athens Lines: 30 In article ko0g+@andrew.cmu.edu (Kevin O'Neill) writes: >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" 100 open "r",1,"datafile" > 200 FIELD #1,3 AS MN$, 4 AS AP$, 4 AS RG$, {etc.} > 300 LSET MN$=NM$: AP$=A1$: RG$=R1$: {etc.} 300 lset mn$=nm$ : lset ap$=a1$ : LSET 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? > > The lines as corrected above should fix your problem. I do have a recommendationhowever. Buy a copy of QUICKBASIC if you want to do BASIC programming. It is much better than BASICA, runs much faster since it is compiled and gives you a better (IMO) working environment. Better suggestion if you are not committed to BASIC: buy Turbo Pascal from Borland and use it.