| To: | REALbasic NUG French <realbasic-nug dot fr at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: tri de lisbox |
| From: | Robin de Kat <sxenvironnement at mac dot com> |
| Date: | Tue, 8 Apr 2008 16:21:17 +0200 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug dot fr at lists dot realsoftware dot com |
| References: | <F3308A69-0565-11DD-AE4A-000A27AE3336 at sucellus dot net> <E5F31278-4242-42F3-9F27-4BA4BDB80721 at mac dot com> |
Le 8 avr. 08 à 14:47, Robin de Kat a écrit : En effet, merci pour cette précision, source de bugs mais en l'occurrence cela ne résout pas mon problème de tri.
Bon, j'ai résolu mon problème de tri.
J'ai pondu un tri bulle à la place de ListBox.sort
le code:
sub DropObject()
dim permut as boolean
dim i as integer
dim tmp as string
Do
If Obj.TextAvailable then
Me.AddRow(Obj.Text)
End if
Loop until Not obj.NextItem
//ListBox9.sort ne fonctionne pas
Do
permut = false
for i=1 to Listbox9.lastIndex - 1
if ListBox9.cell(i,0) > ListBox9.cell(i+1,0) then
tmp = ListBox9.cell(i,0)
ListBox9.cell(i,0) = ListBox9.cell(i+1,0)
ListBox9.cell(i+1,0) = tmp
permut=true
end if
next
loop until permut = false
end sub
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: tri de lisbox, Robin de Kat |
|---|---|
| Next by Date: | Re: tri de lisbox, roland poulard |
| Previous by Thread: | Re: tri de lisbox, Robin de Kat |
| Next by Thread: | Re: tri de lisbox, roland poulard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |