_Title "Qbasic 64" ' Many lines, created with help friend Bplus
'Moldura...
Line (0, 0)-(699, 719), 11, B
'Moldura inteira Line (1, 1)-(698, 718), 11, B
Line (2, 2)-(697, 717), 11, B
Line (3, 3)-(696, 716), 11, B
Line (4, 4)-(695, 715), 11, B
Line (699, 43)-(2, 43), 11, B
'Linha Horizontal Line (699, 44)-(2, 44), 11, B
Line (336, 716)-(336, 44), 11, B
'Linha Vertical Line (335, 716)-(335, 44), 11, B
'Mostra Data
f$ = c$ + d$ + e$
'------------------------------------------------------------------------
'Dim re As _Integer64
'------------------------------------------------------------------------
g = 0
h = 3
qu = 0
te = 0
a$ = ExtendedInput$ 'code Mr. SMcNeill
x$
= x$
+ Mid$(a$
, i
, 2) + " "
h = 3
h = h + 1
x = 49
x = x + 3
g = g + 1
cor1(g) = i
h = h - 1
te = te + 1
soma2
(te
) = Mid$(nt$
(re
), cor1
(ag
), 2)
qu = qu + 1
soma1$
(qu
) = Mid$(nt$
(re
), cor1
(ag
), 2)
g = 0
a = 12
'-------------------------------------------------------------------
t = 1
t = t + 1
soma1(j) = ""
seq(i) = t
a = a + 1
'---------------------------------------------------------------------
a = 12
t = 1
t = t + 1
soma2(j) = ""
seq(i) = t
a = a + 1
'-----------------------------------------------------------------------
x$ = ""
'-------------------------------------------------------------------------------------
Function ExtendedInput$
' Mr. McNeill's extended entrance CP = 0: OldCP = 0 'Cursor Position
Select Case k
'ignore all keypresses except ALT-number presses Case 48 TO 57: AltWasDown
= -1: alt$
= alt$
+ Chr$(k
) Select Case k
'without alt, add any keypresses to our input oldin$ = in$
If CP
> 0 Then OldCP
= CP: CP
= CP
- 1 in$
= Left$(in$
, CP
) + Mid$(in$
, CP
+ 2) 'backspace to erase input oldin$ = in$
in$
= Left$(in$
, CP
) + Space$(4) + Mid$(in$
, CP
+ 1) 'four spaces for any TAB entered OldCP = CP
CP = CP + 4
oldin$ = in$
'CTRL-V leaves cursor in position before the paste, without moving it after.
'Feel free to modify that behavior here, if you want it to move to after the paste.
oldin$ = in$
in$
= Left$(in$
, CP
) + Chr$(k
) + Mid$(in$
, CP
+ 1) 'add input to our string OldCP = CP
CP = CP + 1
CP = 0
oldin$ = in$
CP = CP - 1
CP = CP + 1
alt$ = "": AltWasDown = 0
blink
= (blink
+ 1) Mod 30
ExtendedInput$ = in$