Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #3767 > unrolled thread

Basic does not clear file on open

Started byBill Chatfield <billchatfield1@gmail.com>
First post2017-08-11 07:58 -0700
Last post2017-08-16 06:08 -0700
Articles 8 on this page of 28 — 8 participants

Back to article view | Back to comp.sys.apple2.programmer


Contents

  Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-11 07:58 -0700
    Re: Basic does not clear file on open Michael J. Mahon <mjmahon@aol.com> - 2017-08-11 11:33 -0500
      Re: Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-11 10:50 -0700
    Re: Basic does not clear file on open James Davis <JPD.Enterprises@outlook.com> - 2017-08-11 09:38 -0700
    Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-11 13:38 -0700
      Re: Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-11 14:01 -0700
        Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-11 23:41 -0700
          Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-11 23:51 -0700
      Re: Basic does not clear file on open Michael J. Mahon <mjmahon@aol.com> - 2017-08-11 18:57 -0500
      Re: Basic does not clear file on open ewerst@msn.com - 2017-08-12 07:54 -0700
        Re: Basic does not clear file on open ewerst@msn.com - 2017-08-12 08:00 -0700
          Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-12 12:29 -0700
            Re: Basic does not clear file on open ewerst@msn.com - 2017-08-13 09:11 -0700
              Re: Basic does not clear file on open Michael J. Mahon <mjmahon@aol.com> - 2017-08-13 13:40 -0500
              Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-13 16:41 -0700
                Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-13 16:58 -0700
                Re: Basic does not clear file on open ewerst@msn.com - 2017-08-13 19:08 -0700
                  Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-14 07:46 -0700
          Re: Basic does not clear file on open Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-08-13 04:53 -0500
            Re: Basic does not clear file on open John Brooks <jbrooks@blueshiftinc.com> - 2017-08-13 14:30 -0700
              Re: Basic does not clear file on open Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-08-14 18:33 -0500
            Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-13 16:49 -0700
              Re: Basic does not clear file on open Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-08-14 18:43 -0500
                Re: Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-15 06:13 -0700
                  Re: Basic does not clear file on open gids.rs@sasktel.net - 2017-08-15 13:22 -0700
                    Re: Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-15 13:26 -0700
                      Re: Basic does not clear file on open Antoine Vignau <antoine.vignau@laposte.net> - 2017-08-15 13:48 -0700
                        Re: Basic does not clear file on open Bill Chatfield <billchatfield1@gmail.com> - 2017-08-16 06:08 -0700

Page 2 of 2 — ← Prev page 1 [2]


#3811

FromBrian Patrie <bpatrie@bellsouth.spamisicky.net>
Date2017-08-14 18:33 -0500
Message-ID<omtc10$sv$1@gioia.aioe.org>
In reply to#3801
On 2017-08-13 16:30, John Brooks wrote:
> BTW: Seems like the sequence should be unlock, then delete unless you want prevent locked files from being deleted.

That is, after all, the sort of thing that locking is for.  :)

[toc] | [prev] | [next] | [standalone]


#3804

Fromgids.rs@sasktel.net
Date2017-08-13 16:49 -0700
Message-ID<90e38fa9-fff0-457c-a6cb-b65e05983abe@googlegroups.com>
In reply to#3793
On Sunday, August 13, 2017 at 3:53:17 AM UTC-6, Brian Patrie wrote:
> On 2017-08-12 10:00, ewerst wrote:
> > The VERIFY will succeed but the DELETE will cause the ONERR to trigger.
> 
> This is one of the reasons that i prefer the OPEN,DELETE,OPEN method; it 
> will err for more relevant reasons--including a type mismatch.  I also 
> just plain hate trapping errors; AppleSoft's error trap plumbing is 
> clumsy, even before having to deal with its bugs.  (Would RESUME NEXT 
> have been too much to ask for?)
> 
> On that note, it would be really sweet if there was a mode (perhaps 
> invoked by a special prefix to a DOS command) wherein errors, instead of 
> stopping the programme, would just set the error code.  Then error 
> trapping could be almost as easy as it is in unixoid shell scripts.
> 
> e.g.
> 
> 42 PRINT D$ ".OPEN" F$ : IF PEEK(222)>0 THEN PRINT "Unable to open " F$ 
> : END



The ONERR GOTO should work with DOS as well.  There is a list of DOS error codes on the Beagle Peeks and Pokes chart.

[toc] | [prev] | [next] | [standalone]


#3812

FromBrian Patrie <bpatrie@bellsouth.spamisicky.net>
Date2017-08-14 18:43 -0500
Message-ID<omtcin$1ip$1@gioia.aioe.org>
In reply to#3804
On 2017-08-13 18:49, gids.rs@sasktel.net wrote:
> On Sunday, August 13, 2017 at 3:53:17 AM UTC-6, Brian Patrie wrote:
>> On 2017-08-12 10:00, ewerst wrote:
>>> The VERIFY will succeed but the DELETE will cause the ONERR to trigger.
>>
>> This is one of the reasons that i prefer the OPEN,DELETE,OPEN method; it
>> will err for more relevant reasons--including a type mismatch.  I also
>> just plain hate trapping errors; AppleSoft's error trap plumbing is
>> clumsy, even before having to deal with its bugs.  (Would RESUME NEXT
>> have been too much to ask for?)
>>
>> On that note, it would be really sweet if there was a mode (perhaps
>> invoked by a special prefix to a DOS command) wherein errors, instead of
>> stopping the programme, would just set the error code.  Then error
>> trapping could be almost as easy as it is in unixoid shell scripts.
>>
>> e.g.
>>
>> 42 PRINT D$ ".OPEN" F$ : IF PEEK(222)>0 THEN PRINT "Unable to open " F$
>> : END
> 
> The ONERR GOTO should work with DOS as well.  There is a list of DOS error codes on the Beagle Peeks and Pokes chart.

Of course.  The idea behind this fantasy is to avoid having to use ONERR 
GOTO, because it's messy and buggy.  Of course, if i'm indulging in 
fantasy, i could have RESUME NEXT (go to the command AFTER the error 
occurred, instead of the command that caused it--which is tricky to make 
useful).

But anyway, my fantasies are a digression.  :)

[toc] | [prev] | [next] | [standalone]


#3813

FromBill Chatfield <billchatfield1@gmail.com>
Date2017-08-15 06:13 -0700
Message-ID<e275459d-b4a4-4988-be79-dae59d31ab32@googlegroups.com>
In reply to#3812
On Monday, August 14, 2017 at 7:43:23 PM UTC-4, Brian Patrie wrote:
> On 2017-08-13 18:49, gids.rs@sasktel.net wrote:
> > On Sunday, August 13, 2017 at 3:53:17 AM UTC-6, Brian Patrie wrote:
> >> On 2017-08-12 10:00, ewerst wrote:
> >>> The VERIFY will succeed but the DELETE will cause the ONERR to trigger.
> >>
> >> This is one of the reasons that i prefer the OPEN,DELETE,OPEN method; it
> >> will err for more relevant reasons--including a type mismatch.  I also
> >> just plain hate trapping errors; AppleSoft's error trap plumbing is
> >> clumsy, even before having to deal with its bugs.  (Would RESUME NEXT
> >> have been too much to ask for?)
> >>
> >> On that note, it would be really sweet if there was a mode (perhaps
> >> invoked by a special prefix to a DOS command) wherein errors, instead of
> >> stopping the programme, would just set the error code.  Then error
> >> trapping could be almost as easy as it is in unixoid shell scripts.
> >>
> >> e.g.
> >>
> >> 42 PRINT D$ ".OPEN" F$ : IF PEEK(222)>0 THEN PRINT "Unable to open " F$
> >> : END
> > 
> > The ONERR GOTO should work with DOS as well.  There is a list of DOS error codes on the Beagle Peeks and Pokes chart.
> 
> Of course.  The idea behind this fantasy is to avoid having to use ONERR 
> GOTO, because it's messy and buggy.  Of course, if i'm indulging in 
> fantasy, i could have RESUME NEXT (go to the command AFTER the error 
> occurred, instead of the command that caused it--which is tricky to make 
> useful).
> 
> But anyway, my fantasies are a digression.  :)

I'm not sure now if your serious or not. That's not a command that I've ever had any reason to use. But, it sounds like you just found a use for it. ??? 

This is a great discussion. There's a lot of ideas here I never thought of. Probably because I was 16 when I wrote in Applesoft BASIC. But, still, I like the ideas. :-)

[toc] | [prev] | [next] | [standalone]


#3815

Fromgids.rs@sasktel.net
Date2017-08-15 13:22 -0700
Message-ID<fb486ad3-3010-47ab-9c69-2faa1a0fc899@googlegroups.com>
In reply to#3813
 
> This is a great discussion. There's a lot of ideas here I never thought of. Probably because I was 16 when I wrote in Applesoft BASIC. But, still, I like the ideas. :-)


I wrote a program called NoteTaker that you might appreciate.

http://mirrors.apple2.org.za/ftp.apple.asimov.net/unsorted/NoteTaker.zip

It is more of screen editor, really.  It is written mostly in applesoft, so easily modified.  It has some advanced key features such as insert and delete rows, and scroll screen up and down.  Haven't got back to it yet to do insert and delete character yet, which requires a little ML programming.  You can also blank a page without affecting the other 9 pages.

It can save up to 10 screens to a text file, and the text file can then be loaded into any word processor.

Great for taking quick notes without leaving the Basic environment.

[toc] | [prev] | [next] | [standalone]


#3817

FromBill Chatfield <billchatfield1@gmail.com>
Date2017-08-15 13:26 -0700
Message-ID<e27c4634-78c5-47d6-9f24-2c8153337a2f@googlegroups.com>
In reply to#3815
On Tuesday, August 15, 2017 at 4:22:19 PM UTC-4, gid...@sasktel.net wrote:
> > This is a great discussion. There's a lot of ideas here I never thought of. Probably because I was 16 when I wrote in Applesoft BASIC. But, still, I like the ideas. :-)
> 
> 
> I wrote a program called NoteTaker that you might appreciate.
> 
> http://mirrors.apple2.org.za/ftp.apple.asimov.net/unsorted/NoteTaker.zip
> 
> It is more of screen editor, really.  It is written mostly in applesoft, so easily modified.  It has some advanced key features such as insert and delete rows, and scroll screen up and down.  Haven't got back to it yet to do insert and delete character yet, which requires a little ML programming.  You can also blank a page without affecting the other 9 pages.
> 
> It can save up to 10 screens to a text file, and the text file can then be loaded into any word processor.
> 
> Great for taking quick notes without leaving the Basic environment.

I will try it. Thanks!

[toc] | [prev] | [next] | [standalone]


#3819

FromAntoine Vignau <antoine.vignau@laposte.net>
Date2017-08-15 13:48 -0700
Message-ID<b9578060-d925-426e-b95a-0d23bd6dc951@googlegroups.com>
In reply to#3817
Or you can try my T40 text editor @ http://www.brutaldeluxe.fr/products/apple2/t40.html

Antoine

[toc] | [prev] | [next] | [standalone]


#3822

FromBill Chatfield <billchatfield1@gmail.com>
Date2017-08-16 06:08 -0700
Message-ID<e902d859-c219-434c-a03c-0e60eb4eb487@googlegroups.com>
In reply to#3819
On Tuesday, August 15, 2017 at 4:48:52 PM UTC-4, Antoine Vignau wrote:
> Or you can try my T40 text editor @ http://www.brutaldeluxe.fr/products/apple2/t40.html
> 
> Antoine

This is very cool. I love ASCII art. Although I'm more on the consumer side than the producer side. But, I can practice with this.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.sys.apple2.programmer


csiph-web