Autor Beitrag
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Fr 15.06.07 13:36 
hi!
hat jemand eine idee wie ich in einem dyn. array ein element löschen kann.
natürlich könnet ich einfach alles nahc oben verschieben und dann die länge des array verkürzen, aber geht das nicht einfacher?
gibts da irgendeinen befehl dafür?
danke schon jetzt!
Jann1k
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 866
Erhaltene Danke: 43

Win 7
TurboDelphi, Visual Studio 2010
BeitragVerfasst: Fr 15.06.07 13:43 
Du musst nicht alles verschieben, es reicht doch wenn du den letzten Eintrag an die Stelle des zu löschenden Eintrages setzt und dann - nach Freigabe des letzten Arrayeintrages - das Array verkürzt.
andras Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Fr 15.06.07 13:55 
ok, auf das bin ich nicht gekommen :oops:
thx!!!