Autor Beitrag
Scraffy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Mo 06.11.06 18:43 
hallo,
Also ich denke ich krige diese Aufgabe
www.plauener.de/lessing/delphi/dpue120.htm
ganz gut hin, bis auf den Lösche Stelle und Einfügen button ?! Ich krieg nicht hin, dass da einerseits eine Ganzzahl und andererseits eine Zeichenkette ist! Habt ihr Quellcode Ideen, am besten einfache^^


Zuletzt bearbeitet von Scraffy am Mo 06.11.06 18:50, insgesamt 1-mal bearbeitet
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mo 06.11.06 18:44 
Text in Zahl umwandeln geht mit StrToInt, zurück mit IntToStr

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Scraffy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Mo 06.11.06 18:47 
Das Funzt nicht so ganz, wenn ich
ausblenden Delphi-Quelltext
1:
2:
3:
4:
     s:=edEingabe.Text;
     s1:=edZeichen.text;
     Delete(s1,s,1);
     edEingabe.Text:=s;

habe, gehts auch nciht, ich will also 2 Variablen die eine mit dem Wert des Textes die andern mit der Zahl und dann muss ich ja irgendiwe programieren, dass der Zahlenwert die Stelle eingibt, in der gelöscht bzw. eingefügt werden soll ???

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 06.11.06 20:26 
Jo, das geht mit StrToInt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
s  := edEingabe.Text;
s1 := StrToInt(edZeichen.Text);

Delete(s, s1, 1);

edEingabe.Text := s;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Scraffy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Mo 06.11.06 20:45 
jo danke und für das Einfügen? Also es soll ja ein Buchstabe an die Stelle, die im anderen Edit Feld angegeben ist...!?

Ich seh grad, dass ich mit den drei letzten Buttin auch Probleme habe^^, also wären auch hier Vorschläge nett!!!!