View Single Post
Old 05 November 2019, 18:24   #216
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
I used banks, and processed the data directly using peek, peek$ and poke etc..



Quote:
Originally Posted by Nightshft View Post
I have a problem with ReadFile and Inkey$ when the Debugger is running. It normally works fine, but with active debugger it says "No currently used object!"

Code:
if readFile(0,"filename")
  fileInput 0
  y=asc(inkey$)  <- error
  or
  bla=cvq(inkey$(4))  <- same
  closeFile 0
Seems like inkey$ sees no active fileInput although its defined one line before. Only when the debugger is running. Am I missing something, or is there a workaround?
(Blitzbasic 2.42. Without debugger this never happens. With debugger always.)
BippyM is offline  
 
Page generated in 0.04443 seconds with 11 queries