Page 115

L'AD? Basic 1030 1040

OATA255,32 ,207 ,255,170.169,0,32 OATA32,204 ,25:5,169,67,32,195

,2eE'- 196,173,141,2,288,251,230,170 ;255,76,140,196,32,212,225,165,45,56,233,2,178

1050 DATA165 ,46 ,233,e, )68,169,8,133,186,169,0,32,213,255,32,,5 10S0 OfllTA233,2, 133 ,87,165,46,233,0,133,88,160,0,177,87,208,29,200,

,2ee

,233

1,165,56,165,45 177,87 ,2ee

leJ70

DATA24, 165,87,24,105,2,133,45,133,47,133,49,165,88,105,e,

1080 10S0

OATAse, 76,140,196,160,0,177,87,133,89,200,177,87,133,88, DATA144 ,203 ,32,212 ,225,162,17,169,160,157,64,3,,21212,16,250,164,183

133 ,46,133,48,133

1100

DATA136,177,187,153,64,3,192,0,208,246,32,59,192,162,

165 ,89 .133 ,87 ,24 ,2413, 10 72,32,201,255,169,73

1111' DATA32,210 ,25~ ,32 ,204 ,255, 16~ ,&7,162,8, 16e ,3 ,32,186,255,169, l ,162,58,160 1120 DATA161' ,32,189,255,32,192,255,162,72,32,201,255,169 ,24e ,160,207 ,32 ,30 ,171 1130 DATA32,204 ,255,162,67,32,198,255,162,0,32,207,255,157,8,168 ,232 ,208 ,247 1141' OATA32,204 ,255,162,17,189,64,3,157,144,168,202,16,247,162,72 1150 OI"lTA 169 ,232 ,16e,287 ,32 ,30,171.32,204,255,162,67.32,201,255,165, 189,0,

,32 ,2el ,255 l ,41 ,254

1160

DATA133, 1,162,e,

16e ,32 ,210 ,255 ,232 ,208 .247 ,32 ,204 ,255,165,1,9,1,133

1170

DATA1,169,50,141.241,207,162,72,32,201,255,169

1180 11ge

OATA204,255,169,67,32,195,255,169,49,141,241.207,76,0,196 DATA8, 133,186,169,73,133,184,32,192,255,32,65,192,162,72

1200

DATA255, 133 .252 ,32 ,207 ,255 ,24,101,252,133,252,32,207,255,32.183,255,201

1210 1220 1230 1240

DflITA64,208 ,246 ,32 ,204 .255,165,252,201,96,240,8,32,231,255,162,4.76,139,227 DATA162 ,73,32, 198,255,32,207,255,32,207,255,32,207.255, 170,32,207.255,224 DATA0,208 ,6,201.0,208.2.240,106,169.0,133.252,169,13,32 ,210 ,255 ,32 .225 ,255 DATA240,92 .32 .207 ,255,170,32,207,255,32,205,189,169,32,32,210,255 ,32 ,207

,240,160

1250

DATA255,240,2e5

DATA255,208 ,230,164,252,208,247,72,169,8,133,168,169,205,

1270 1280 1290

DATA41, 127,178,240,12,280,208,2,230,169,177,168,16,247 DATA2,230 ,169,177,168,72,41,127,32,210,255,104,16,240,48 DATA169,73,32,195,255,76,248,168,32,204,255.32,231,255,

.201,34,208,8,72,165,252,73,1,133,252,104,201,0,48

1300

DATA0,32,186,255,169

,5 .32 .210

,e ,32,189,255,32,192,255,96,168,9,80,72,162.6,32,186

131e

DATA255, 169 ,e ,32,189,255,32,192,255,184,170,32,201,255,96,32 DATA32, 195,255,76,248,168,32,121,0,201, 145,24e, DATA240.36 ,201,225,240,47.201,226,240,58,76.43.198,32.80

1340 1350

DATA255, 76,248,168,169.13,32,210,255,32,204,255,32,231,255, DATA7,32 ,104 ,21'1.169,0.32.210,255,169.7,76,127,201,169,6,32,

,204 .255 ,9,80

19,2el

,224,240,26,201,223 ,2el , 162,70,32,201 76,248,168,169 104,201,169

1360 DATA49,32,210,255,169,6,76,127,201,169,6,32,104 ,2el ,169,48,32,210,255,169 1370 DATA6,76,127,201,234.234,234,169, I ,32.104.201,169,72,32,210,255,169,1,76 1381' DATA127 ,201,169, l ,32, le4 ,201,169,73,208,239,169, l ,32,104,201,169,77,32 1390

DATA255,32,

1400

DATA0,201,230,240,7,201,231,248,15,76,0,207,32,115,0,169,

7e,2e2

,169,

1,76,127,201,169.1,32,

,21e

le4 ,201,169,68,208,236,32.121 l .32,104.201,169

1411' DATA82,28B,210,32, 115.0,169,1.32.104,201,169,74.208.198.32,158,173 ,32 ,221 1420 DATA189 ,32 ,30,171,32,121,8 ,32 ,21e ,2:55 ,32,115,0,32,158,173,32,221,189,32 1430 DATA30, 171 ,96,169,2,32,184.201,32,1:58,183,138,41 ,3,9,48.32,210,255,169,2 1440 1450

DATA78. 127,201,169.48,72,169,2,32,104,201, le4 ,32 ,210,255,169,2,78,127.201 DATA189 ,49 ,288 ,237,169,50,208,233,189,51,208,229,32,158,183,138 ,201,16,246

1460

DfilTA 17 ,201,20,240,13,201,40,240,9,201,80,240,:5

,162 ,14,76,139,227,162,254

1470 DATA232. 10,144,252,138,72,169,3,32,104 ,201,1e4, 148B DjIIlTA3, 76,127,201,32,121,0,201,145,240,7,201,224,240,3,76 1490 DjIIlTA72 ,169 ,4 ,32,104,201,104,32,210.255.169,4,76,127,20

170,169,0,32,205,189,169 ,43 ,198 ,41,1,9,48 1,169,5,32.104,201

1500

DATA32, 1:58,173,32,221,189,32,30,171,169,5,76,127

,2el

1510

DATA201,25:1i, 169,13,32

76,127,201,168,9,96,72,162

,16e,

170,32,204

,25:1i, 169 ,7e,

1520 OATA4, 76,110,201,72,169,13,32,210,255,104,32,204,255.9,96, 1:1i30 DATA121,0,281,145,240,19.201,224.240.26,201,223,240.36 1540 1550

DATA226,240 ,57,76,43,198,32,35,192,162,68,32,201,255,76,248, DATA218,255 ,32 ,204 ,255 ,32 ,231.255,76,248,168,169,10.32,

,32,80,201,162,70,32 76,132,201,32 ,26 1,225,240.47,201 18a, 169,13,32 IS .203,169,0,32,210

1580 1570

DATA255, 189,10,76,24,203,169,7,141,46,192,32 ,2e4 ,255 ,32 ,231 ,255,76,69,203 DATA189 ,6 ,24t"240 ,32,121,0,201.145,240,11,201,224,240,24,20 1,238.240,24

1580 1598

DATA76,43,198.189,147,72,189 ,e,32 ,15,203 ,104 ,32 ,210,255,169,0,76,24,283 OATA169,19 ,288,237 ,32,115,0,169,3,32,15,203.32.158,183,138,32 ,210 .255,189

1600 1610

OATA3,32 ,24 ,203 ,24.144,212,234.234,234,234,169,6,32,15,203,32,158, OATA32,210 ,2:1i5, 169,6,76,24,203.32,121.0,201.145,240,7.201,224.240.

183,138 18,76

1820 1630

DATPl43, 198,169,4,72.32,15 DATA32.35,192,162,68,32

1640 1650 1868

DATA188, 169,2 ,32,15,203,169,13,32,168,170,32,204,255,169,98 ,32 ,195,255,78 DfIlTA248.168,169, l ,32,15,21'3,169,13,32,160,170,32,21'4,255,169,97 ,32 ,195,255 DjIIlTA76 ,248,168,234,234,234,169,6,32,15,203,169.21.32 ,210 ,255,169,13,32,210

1670 1680 lS90

DATA255,32 ,204 ,255,169.102,32,195,255,32,35,192,162,68,32,281,255, 169 ,4 DATAIS8,0, 133,252 ,132 ,251,162,40,32 ,228,255,208 ,91,224,40,208,7,169,13,32 DATA210,25S, 162,0,177,251,41,128,73, 12e ,9.18,32,210,255.177,251.41.31,133

1700

Df'tTA253, 177 ,251,41,127,74,74,74,74,74,168,185,252,204,160.0.5

1718 1720 1730

DATA208,20 ,32,2 le ,255,169,141,32,210,255,138,168,169,32,32,210,255, DATf't248, 169,32,32,2 J0 ,25:5 ,232 ,230 ,251,209,2,230,252,165,252,201,7 OATA165 ,251,201 ,231 ,208,160,169.13,32,210,255,32,204,255,169,68,32,

1740 1750

DATA169,10,32,15,203,169,0,32,210,255,169,10,76,24,203 DPlTA32,201,255,160,5,185,246,204,153,119,2,136,16,247,169,6,

1760 1778

DATAI',76,156.186,223,32,255 ,8e,82, 79, 70,70,13,64,32.96,160,0.69.78,196,70 OATA79.210,78,69,88,212,68,65,84,193,73,78.80,85,84.163,73, 78,80,85,212

.2e3 ,169 ,e,32 ,210 ,255 ,104,76,24,203,169,9,208,239 ,2el ,255.169,13,32,160,170,32.204,255,169,68,76,248

.253 .201.34 136 ,288 ,2e8, 166 195,255

DATA88.69,198,80,79.75,197,80,82,73,78,84,163,80,82,73, DATA78, 73,93,212,67,76,210,67,77,196,83,89,211,79,80.69

1831' DATA197, 71,69.212,78,69,215,84,65,66,168,84,207, 1840 Df'tTf't69.286,78,79,212,83.84,69,208,171,173,170,175,222,65, 1850 OATA189, 188,83,71,206,73,78,212,65,66.211.85,83,210,70,82,

OATA65,84 ,206 ,80 ,69 ,69 ,203,76,69,206,83,84,82,164,86,65,204,65,83,195,67 OATA7E,82,184,76,69,70 ,e4, 164 ,82,73,71,72,84,164,77,73,68,164,71,207,73 Of'tTA78, 73,212,86,68,65 ,e4, 197,69,82,65,83,197,70,77,65,212,67,79,80,217 DATA82.69,78,85,77.197,70,76,65,83,200.68, 76, 79,65,196,69,83,65,86,197,68

30 PRINT A$

mostrerà su video la scritta BUONGIORNO, precedentemente prelevata dalla 12esima posizione del file. 40 SENO 5 "SALVE'"

riempiamo l~quinta' posizione con la stringa SALVE! 50 SENO 3,"ABBRACCI

E BACI"

riempiamo la terza posizione con la stringa ABBRACCI E BACI, cancellando l'ARRIVEDERCI precedentemente inserito. 60 REL CLOSE

chiude il file aperto. È chiaro che non è possibile aprire più file relativi contemporaneamente, dato che le istruzioni SEND e RECEIVE non fanno riferimenti al nome del file in questione.

,84 ,65 ,206

DI'lTPl86,69 ,210 ,87 ,65 ,212 .89 .98.197,86,76,79,65,196.66,83,65,86,197.82,65

1921' Of'tTA79,71,197,84,92,83,197,65,80,80,69,78,199,68,73,83,75, OATA73,69,215 .82,69,83,69,212,79,70,198,83,77,65,76,204,67,65 OATA72, 79,77,197,93,69,212,77,79,86,197,68,82,65,215,82 DATA79,210 ,66,76,65,67,203,66,76,85,197,71,82,69,69,286,82,69,

19B8 DATA90, 197,82,79,84,65,84,197,66,82,79,75,69,206,87,82,73 197e DATA88,85,71,197,70,89,69,196,77,69,83,83,65,71,197,76

78,65,77,197,96 .208 ,81',204 ,69 ,204 .67,79,76 196,83,73 ,84,197,80,210 ,80 ,82,73,78.212,85

DATA83, 73, 78,199,79,85,212,72,67,79,80,217,76,76,73,83,212, 75,89,217,83 OATA89, 79,196,82,69,67,69,73,86,197,70,73,76,197,0,0,0,0 .0,0 ,0,0,0.0,0,0 DATA0,8,1:1 ,e,e ,0 ,e,e ,0,0,e,0 ,0,0 ,0,0 ,281,159,240,7,201,160,240,97,76,43.198

e811:1 DATA32,59,192.32.115,0,32.212.225,184,183,240,240, 136,177,187, 1~3 ,64 ,3.192 e1l2" DATA".288,248,184,193,165,186,201, l ,240,24,169,44,153,64,3,200,169,76, IS3 2838 DATf'tS4.3 ,2efl, 169,44,153,64,3,200,165.186,153,84,3,21'0,152.162 ,64 ,161',3 ,32 21'48 205e e86e

DATA199 ,255,189,88,162,8,160,4,32,186,255,32,192,255.182, 72,32.199,255,32 DATllle87,255 .32,183,255,201 ,64 ,2e8 .246 ,32 ,2e4 ,255 ,96 ,32 .204 ,255.169,86,32 Of'tTf't195,25S, 78,248.168,32,138,173,32,247,183,162,72,32,20 l ,255,189,815 ,32

e87e 20.8 2e8e

OATf'teI0,255 .169,4,32 ,2UI,255, 165,20,32,2115,255,165,21,32,211' ,255,169 ,1,32 OATf't210,2S5 ,32 ,204 ,2S5, 76 ,96 ,207 ,234 ,234 .234 ,32,116,207.32,253,174,162,66 OATA32,2t11 ,255,169,13,32,160,170.32,204,255,76,248,168,32, 116,207.32,253

elee Df'tTAI74 ,182 ,68,78,173,171,0,0,1' ,0 ,15,0 ,8,0 ,0,0,0 ,e,e,0 .0,e ,0,0,0,0,8,0.0 e 118 DATA0,8,0 ,0 ,8 ,8 ,0 ,85 ,49 ,59 ,53 ,44 ,49 ,44 ,8 ,66 ,45 ,80 ,58 ,51,44,48,0.85,49,58 2120

20 RECEIVE 12,A$

poniamo in A$ la 12-esima registrazione.

70,206,83,80,67,168,84,72 78,196,79,210,190 197,80,79,211

OATA93.81 ,210 ,82,78,196,76,79.199,69,88,208,67,79,211,83,73,206

1988 1998 eeee

10 REL OPEN "ESEMPIO"

questa volta non abbiamo indicato la lunghezza massima degli elementi, essendo il file già inizializzato.

,83 ,84,79 7e ,217

1960

1918

40 REL CLOSE

chiudiamo il file precedentemente aperto. Scriviamo ora un programmino per accedere alle registrazioni del file ESEMPIO e per modificare alcune di esse:

78.212,67,79,78,212 ,206 ,67,76,79,83

1870 18e8 1898 1988

193e 1940 1950

riempiamo la terza posizione con la stringa ARRIVEDERCI

,32 ,35,192,162,68 133,198,32,121

1780 OATA68, 73,205,82 ,69,65 .196,76,69,212,71,79.84,207,82,85,206,73,198,82,69 1791' DATI'l83,84, 79,82,197,71,79,83,85,194,82.69,84,85 ,82,206,82 ,69,285 1800 OATA2e8, 79 ,286 ,87 ,65,73,212,76,79,65,196,83,65,86,197,86,69,82,73, 1810 1920

20 SENO 12,"BUONGIORNO"

riempiamo la 12-esima posizione con la stringa BUONGIORNO 30 SENO 3,"ARRIVEOERCI"

133.169,160,0,104 ,282 ,208 ,244 ,200,208 ,179 .32 ,204 ,255 169,70,162,6,160

1328 1330

10 REL OPEN "ESEMPIO",50

con questa prima linea inizializziamo il file relativo, di nome ESEMPIO e con registrazioni di lunghezza massima 50 byte.

,207 ,32 ,30,171,32 ,32 ,212 ,225,169 ,32,198,255,32,207

1260

do INPUT, è obbligatorio che la RECEIVE sia inserita in una linea di programma, pena il messaggio d'errore ILLEGAL DIRECT. Facciamo un esempio: scriviamo il seguente programmino per inserire alcune registrazioni in un file e per recuperarle agevolmente.

OATASI ,44 ,49,44,49,56,44,49,0,0,0,0,81'

MCmicrocomputer n. 39 - marzo 1985

Il comando KEY alliva i tasti Fl-FS e mostra le definizioni correnti.

Confessione e autocritica Dobbiamo confessare una piccola cosa: l'ADP Basic, per come era stato pensato e ripensato al momento del concepimento, si sarebbe dovuto esaurire già da un mese. Trattamento file relativi e definizione dei tasti FI-F8 non erano in programma. Diciamo che la continuazione è avvenuta a gentile richiesta di alcuni lettori: "Un Tool che non definisce i tasti F 1-F8?" ... "E i file 115

Profile for ADPware

039 MCmicrocomputer  

Marzo 1985

039 MCmicrocomputer  

Marzo 1985

Profile for adpware
Advertisement