QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Mad Axeman on May 23, 2020, 10:01:06 am

Title: Exiting _FILEDROP
Post by: Mad Axeman 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.  
Title: Re: Exiting _FILEDROP
Post by: Mad Axeman 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 :-)
Title: Re: Exiting _FILEDROP
Post by: Petr on May 23, 2020, 03:34:10 pm
This also happens to me very often :)