Autor Beitrag
delphistart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: Di 05.12.06 20:06 
Folgendes Problem:
Ich habe eine String-Variable die immer 12 Stellen hat. Nun muss ich alle Zeichen einzeln auslesen und in jeweils eigene Variablen speichern oder eben einzeln in einen String. Wie kann ich das machen?

Danke vorab für eure Antworten!
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 05.12.06 20:08 
Du kannst mit uschi[1] auf den ersten Buchstaben zugreifen, wenn deine Stringvariable uschi heißt. ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: Di 05.12.06 20:19 
Vielen Dank!

Das es so einfach ist hätte ich nicht gedacht!

:dance:
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 05.12.06 20:32 
user profile icondelphistart hat folgendes geschrieben:
Vielen Dank!

Das es so einfach ist hätte ich nicht gedacht!

:dance:

Ist es aber :mrgreen:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: Di 05.12.06 20:42 
Doch noch ein Problem aufgetreten:
Ich habe folgenden Code, doch ich bekomme immer eine Fehlermeldung -EConvertError mot der Meldung "-
Vielleicht findet ihr ja den fehler:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
ean:='0'+modul+artnummer;
    wert:=(10-(((StrToInt(ean[1]))+(StrToInt(ean[2])*3)+(StrToInt(ean[3]))+(StrToInt(ean[4])*3)+(StrToInt(ean[5]))+(StrToInt(ean[6])*3)+(StrToInt(ean[7]))+(StrToInt(ean[8])*3)+(StrToInt(ean[9]))+(StrToInt(ean[10])*3)+(StrToInt(ean[11]))+(StrToInt(ean[12])*3))MOD 10));
    if wert=10 then
      ean:=ean+'0'
    else
      ean:=ean+IntToStr(wert);
    showMessage('Der EAN lautet:'+ean);
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: Di 05.12.06 22:21 
Hat sich erledigt... War ein dummer Fehler der nur indireckt mitderSache zu tun hatte! :autsch: