# Array mit Zahlen?

**URL:** <https://forum.calliope.cc/t/array-mit-zahlen/632>\
**Category:** Fragen zu MakeCode/PXT\
**Created:** [24. Juli 2018 um 16:52 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632 "2018-07-24T16:52:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [24. Juli 2018 um 16:52 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632/1 "2018-07-24T16:52:31Z")

</div>

Ich wollte die Werte für mein [Oszilloskop](https://www.youtube.com/watch?v=JVe3ZOhwt30) in einem Array zwischenspeichern. Kann es sein dass die ganzen Arraybefehle im Blockmodus nur mit Strings und nicht mit Zahlen funktionieren?

---

<div class="post-metadata">

**Author:** ![PHZH](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/phzh/32/83_2.png) [@PHZH](https://forum.calliope.cc/u/PHZH)\
**Post date:** [26. Juli 2018 um 06:59 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632/2 "2018-07-26T06:59:53Z")

</div>

Hallo Michael

Ich weiss nicht ob ich dich richtig verstehe. Bei mir funktionieren Arrays auch mit Zahlen. Siehe folgendes Beispiel welches bei mir bestens funktioniert:  
 ![grafik](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/1X/106f9ecf7cd3f7e231e7ae88c6cdb3e0a7152fc8.png)

---

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [26. Juli 2018 um 08:56 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632/3 "2018-07-26T08:56:37Z")

</div>

Danke für Dein Interesse.  
Ich wollte ein leeres Array erstellen und dann Zahlen einlesen.  
Vielleicht muss ich aber erst noch ein wenig die Grundlagen testen. Oder mein Fehler liegt woanders.  
Es wird compiliert. Auf dem Mini erscheint ein trauriger Smilie und die Zahl 20. Wohl ein Calliopefehlercode.

 ![mini-Screenshot(2)](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/1X/4ba811d9b900f4acfa13bb27e5559b109cbb2d99.png)

---

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [26. Juli 2018 um 08:58 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632/4 "2018-07-26T08:58:51Z")

</div>

Jetzt wo ichs hochgeladen habe sehe ich auch schon einen Fehler. Blöde Belegung mit Standardvariablen. **list** muss natürlich **pufferarray** sein. Probier ich nachher aus.

---

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [26. Juli 2018 um 09:07 UTC](https://forum.calliope.cc/t/array-mit-zahlen/632/5 "2018-07-26T09:07:03Z")

</div>

HA! Läuft! Danke 😉
