Teste das mal bitte, wie gehabt, nacht ae.sort ist das Array leer
Gruß
Stefan
Dim ae(505) as string
ae(0)="eins"
ae(1)="zwei"
ae(2)="drei"
ae(3)="drei"
ae(4)="VIER"
ae(5)=""
for i=6 to 500
ae(i)=0
next
MsgBox
str(UBound(ae))+":"+(ae(0))+(ae(1))+(ae(2))+(ae(3))+(ae(4))+(ae(5))
ae.sort
MsgBox
str(UBound(ae))+":"+(ae(0))+(ae(1))+(ae(2))+(ae(3))+(ae(4))+(ae(5))
Stefan Sicurella <sicurella at onlymac dot de> wrote:
Hallo,
glaub ich eher nicht... also da ist ja nichts falsch zu machen. Mein
Array hat bis zu 500 Einträge und mehr als Array.sort kann man ja
nicht
eingeben....
dim n(5) as integer
n(0)=6
n(1)=4
n(2)=9
n(3)=1
n(4)=3
n(5)=4
n.Sort
MsgBox str(UBound(n))+":
"+str(n(0))+str(n(1))+str(n(2))+str(n(3))+str(n(4))+str(n(5))
funktioniert hier.
Damit liegt das Problem wahrscheinlich bei dir.
Mfg
Christian
--
Nine thousand functions in one REALbasic plug-in. The MBS Plugin.
<http://www.monkeybreadsoftware.de/realbasic/plugins.html>
|