The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using inkey
#13
Sorry Sorry sorry......

Code:
INK 7 : PAPER 0 : BORDER 0 : CLS #include <keys.bas> let length=60 : let rowx=0 : let xx$="<" NETinputloop: if rowx=0 then print at 22,0;xx$ : goto NetJump1 : end if print at 22,0; : FOR ii = 0 TO rowx : print chr$(peek (@MyLabel + ii)); : NEXT ii : print xx$;" " NetJump1: let k=code inkey$ : if k then beep .2,0 : end if if k>31 and k<128 then goto NetKeyPress : end if if k=13 then end : end if if k=12 then goto NetDeleteKey : end if goto NetJump1 NetDeleteKey: if rowx=0 then goto NETinputloop : end if POKE (@MyLabel + rowx), 0 let rowx=rowx-1 goto NETinputloop NetKeyPress: if rowx=length then goto NETinputloop : end if POKE (@MyLabel + rowx), k let rowx=rowx+1 goto NETinputloop MyLabel: ASM text1: ds 1024 ; 1024 bytes of space MAX!! END ASM MyLabel2: ASM lenth1: ds 1 ; 1024 bytes of space MAX!! END ASM

When NetDeleteKey: it should move the cursor back but does not. What am I missing.
I'm always on the chat or facebook.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)