Skip to content

Commit e701279

Browse files
committed
Bugfix samples
1 parent 57b9fec commit e701279

14 files changed

+39
-1204
lines changed

applications/Calendar.bas

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
#sec:Main
2-
'
3-
' Calendar (PalmOS version)
4-
'
5-
const box=18
6-
const lmar=80-box*7/2
7-
const tmar=34
1+
const box=txth("Q") * 2
2+
const lmar=20
3+
const tmar=100
84
dim ds(0 to 6),ms(12,2)
95
for i=0 to 6 : read ds(i) : next
106
data "Su","Mo","Tu","We","Th","Fr","Sa"
@@ -13,7 +9,7 @@ next : next
139
data "January","February","March","April","May","June","July","August","September","October","November","December"
1410
data 31,28,31,30,31,30,31,31,30,31,30,31
1511
repeat
16-
at 3,148
12+
locate 0,0
1713
input "Month,Year? ",ln$
1814
cls
1915
if ln$=0 then stop

applications/Factor.bas

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#sec:Main
2-
31
CONST s$=CHR$(27)+"[90m"
42
CONST n$=CAT(0)
53
REPEAT
@@ -35,7 +33,6 @@ REPEAT
3533
ELSE
3634
f$=f$+s$+str$(p)+n$
3735
ENDIF
38-
PRINT f$
36+
PRINT f$
3937
UNTIL
40-
END
41-
38+
END

applications/Weekday.bas

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
'
2-
' Day of week
3-
'
1+
'
2+
' Day of week
3+
'
44
dim days(0 to 6), mons(1 to 12)
55
for m=0 to 6 : read days(m) : next m
66
for m=1 to 12 : read mons(m) : next m
@@ -13,7 +13,7 @@ y=val(v(2))
1313
?"Today is ";
1414
goto 11
1515
10 rem
16-
input "Date ? ",ln$
16+
input "Date (M/D/Y)? ",ln$
1717
if ln$=0 then stop
1818
split ln$,"/,",v
1919
if ubound(v)>1 then if len(v(2)) then y=val(v(2))

applications/calculator.bas

-290
This file was deleted.

applications/clock.bas

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
env("TURBO=1")
3-
env("TITLE=Clock")
42
color 0, 15
53
cls
64

@@ -63,11 +61,11 @@ while 1
6361

6462
if ucase(inkey)="Q" then exit
6563

64+
showpage
65+
6666
while start - timer = 0: wend
6767

68-
draw_arrow sa, sr, 15
69-
draw_arrow ma, mr, 15
70-
draw_arrow ha, hr, 15
68+
circle cx, cy, sr color 15 filled
7169
wend
7270
end
7371

0 commit comments

Comments
 (0)