Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Do 03.01.08 20:30 
Hallo,

wie würdet ihr folgende Aufgabe lösen?

Wenn man einen Artikel mit 100 Sätzen hat.

Wie kann Delphi das per Zufall 100 Sätze willkürlich der Reihenfolge tauschen?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 03.01.08 20:39 
Moin!

Pack die Sätze in eine Stringliste und mische sie. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Kri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Do 03.01.08 20:41 
Wenn wir davon ausgehen, dass z.b. der Artikel in eine Memo geschrieben wird, kann man die Memo nach Satzbeendungzeichen wie zb. "!", "." usw suchen..un alles was eben vor solch einem Zeichen steht soll in einer Variable gespeichert werden.
Dann haste von mir aus 100 Variablen und kannst diese gemischt wieder inne Memo schreiben..

Gruß
Kri