Author Topic: Exiting _FILEDROP  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

Offline Mad Axeman

  • Newbie
  • Posts: 74
    • View Profile
    • My web site - Harrythetrout
Exiting _FILEDROP
« on: May 23, 2020, 10:01:06 am »
Is there a way to exit a _FILEDROP if you decide not to upload a file? Pressing esc etc doesn't seem to do anything. Only way I have found so far is to exit the program :-(

I'm using the following
Code: QB64: [Select]
  1.     CLS
  2.     PRINT ""
  3.     PRINT " Unit cannot download direct to PC. Copy file to USB stick first."
  4.     PRINT " Once you have the file on the USB stick drag and drop it to this window..."
  5.  
  6.  
  7.     DO
  8.  
  9.  
Oh look - a sig file :-)

Offline Mad Axeman

  • Newbie
  • Posts: 74
    • View Profile
    • My web site - Harrythetrout
Re: Exiting _FILEDROP
« Reply #1 on: May 23, 2020, 10:13:00 am »
Okay, I'm a dickhead. All I need to do is check for keyboard input between the 'DO' and 'LOOP' and see if it's chr$(27).

Strange how the obvious shows itself when you walk away for a few minutes :-)
Oh look - a sig file :-)

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Exiting _FILEDROP
« Reply #2 on: May 23, 2020, 03:34:10 pm »
This also happens to me very often :)