<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><title>Vergleich auf < (kleiner als) bzw. >= geht im play modus aber nicht auf dem Stift</title><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Entwarnung, zumindest teilweise. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Ich habe selbst gedebugged und einfach mal ein P(beep) ans Ende der Zeile gemacht:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  finaleingabe:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle==0? P(erstfinalstarten)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle<7? $codestelle+=1 $code*=10 $code+=$zahl P(beep)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Ergebnis: Wenn ich auf die Zahlen drücke, dauert es auf dem Stift ein wenig, bis das beep abgespielt wird. Es funktioniert dann aber alles bestens!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Nun war meine Vermutung, dass ich einfach zu schnell auf die nächste oid gedrückt habe. Also habe ich einfach mal das P(beep) wieder raus genommen und mir sehr, sehr viel Zeit genommen bevor ich auf die nächste oid gedrückt habe. Dummerweise geht es dann aber auch wieder nicht.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Ich habe den Code dann so umgeschrieben, dass ich eben keine elegante finaleingabe mehr habe, sondern alles direkt mit redundantem Code bei Eingabe der Zahlen erledige.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  f1:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle==0? P(f1) P(erstfinalstarten)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle>=7? P(f1)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle+=1 $code*=10 $code+=1 P(f1)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  f2:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle==0? P(f2) P(erstfinalstarten)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle>=7? P(f2)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'>  - $codestelle+=1 $code*=10 $code+=2 P(f2)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Damit geht es absolut fehlerfrei!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>@andi: Mit deinen 2^16 hast du Recht. Daran habe ich nicht gedacht. Witzigerweise geht es mit obigem Code aber problemlos auf dem Stift…<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></a></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> tiptoi [mailto:tiptoi-bounces@lists.nomeata.de] <b>Im Auftrag von </b>Andreas Binzenhöfer<br><b>Gesendet:</b> Freitag, 1. Mai 2015 08:40<br><b>An:</b> 'Die Mailingliste für Tiptoi-Bastler'<br><b>Betreff:</b> [Tiptoi] Vergleich auf < (kleiner als) bzw. >= geht im play modus aber nicht auf dem Stift<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-family:"Calibri",sans-serif'>Hallo,</span><o:p></o:p></p><p><span style='font-family:"Calibri",sans-serif'>ich habe mal wieder etwas seltsames gefunden.</span> <span style='font-family:"Calibri",sans-serif'>Ich möchte einen sechsstelligen Code mit dem Stift erzeugen. Dazu kann man auf oids für die zahlen 0 bis 9 klicken, danach wird der Code zusammengebaut. Im</span> <span style='font-family:"Calibri",sans-serif'>play modus funktioniert das Ganze problemlos. Auf dem Stift geht es nicht.</span><o:p></o:p></p><p><span style='font-family:"Calibri",sans-serif'>Nach langem debuggen habe ich nun den Fehler gefunden. Der Vergleich</span> <span style='font-family:"Calibri",sans-serif'>eines Registers mit <</span> <span style='font-family:"Calibri",sans-serif'>bzw. auch mit >=</span> <span style='font-family:"Calibri",sans-serif'>funktioniert im play-modus, auf dem Stift aber nicht:</span><o:p></o:p></p><p><span style='font-family:"Calibri",sans-serif'>Code:</span><o:p></o:p></p><p><span style='font-family:"Calibri",sans-serif'>     </span> <span style='font-family:"Courier New"'>final:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? $code:=0 $codestelle:=1</span> <span style='font-family:"Courier New"'>P(StartFinal)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'> </span> <span style='font-family:"Courier New"'>f1:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=1 P(f1) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  finaleingabe:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? P(erstfinalstarten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle<7? $codestelle+=1 $code*=10 $code+=$zahl</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Den Vergleich <7 mache ich, da mein code sechstellig ist und ich das register nicht überlaufen lassen möchte.</span> <span style='font-family:"Courier New"'>Im Play modus führt er den code so aus, wie ich mir das vorstelle.</span> <span style='font-family:"Courier New"'>Auf dem Stift geht er offensichtlich nie in die zweite Zeile.</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Mit >= hat es dann auch nicht funktioniert:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>finaleingabe:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? P(erstfinalstarten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle>=7?</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle+=1 $code*=10 $code+=$zahl</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Mit folgendem Code geht es</span> <span style='font-family:"Courier New"'>dann aber</span> <span style='font-family:"Courier New"'>auch auf dem Stift:</span><o:p></o:p></p><p><span style='font-family:"Calibri",sans-serif'>     </span> <span style='font-family:"Courier New"'>final:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? $code:=0 $codestelle:=1 P(StartFinal)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'> </span> <span style='font-family:"Courier New"'>f1:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=1 P(f1) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  finaleingabe:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? P(erstfinalstarten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle+=1 $code*=10 $code+=$zahl</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Das liegt vermutlich wieder an mir. Nachdem es in play und auf dem Stift unterschiedlich ist, wollte ich es doch mal posten.</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Hier noch der komplette yaml Code, falls es doch noch an anderer Stelle liegt:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  final:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? $code:=0 $codestelle:=1 $station:=7 P(StartFinal)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $code!=135246? $code:=0 $codestelle:=1 $station:=7 P(CodeFalsch)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $code==135246? $station:=7 P(FinalKoordinaten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f0:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? P(f0) P(erstfinalstarten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle>=7? P(f0)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==1? P(f0)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $code*=10 $codestelle+=1 P(f0)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f1:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=1 P(f1) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f2:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=2 P(f2) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f3:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=3 P(f3) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f4:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=4 P(f4) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f5:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=5 P(f5) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f6:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=6 P(f6) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f7:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=7 P(f7) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f8:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=8 P(f8) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  f9:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $zahl:=9 P(f9) J(finaleingabe)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'> </span> <span style='font-family:"Courier New"'>finaleingabe:</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle==0? P(erstfinalstarten)</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>  - $codestelle<7? $codestelle+=1 $code*=10 $code+=$zahl</span><o:p></o:p></p></div></body></html>