Español
Fuente/ Codesnippets

Gridbox & Co. 1.Spalte correcto sortiert después de Pagar

 

H.Brill
Was no cada weiß :
El automatische Sortierung en el List - Controls geschieht sí
después de ASCII, d. h. después de 1 kommt 10, 11, 12 usw. y no 2, 3, 4
Wenn los números aber igual lang gemacht voluntad (z.B.001 en lugar de 1)
así va auch el Sortierung correcto. Es al besten con Formato$().
Declarar Handle grid, liste
Ventana 500, 200
grid  = Crear("Gridbox", %HWnd, "spalte 1;0;60;spalte 2;0;80;spalte 3;0;60", 1, 10, 10, 220, 100)
liste = Crear("Listbox", %HWnd, 1, 250, 10, 220, 100)

WhileLoop 100, 1, -1

    AddStrings(grid, Formato$("000", &LOOP) + "|" + "AAA" + "|" + "BBB")
    AddStrings(liste, Formato$("000", &LOOP))

EndWhile

Mientras que 1

    Waitinput

EndWhile

 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
03.12.2022  
 




Sven
Bader
Hier todavía una Ejemplo, una unsortierte Liste a mano a sortieren por Bubble Sort.
Declarar Handle grid, liste
Declarar thisRow$, nextRow$, done&,count&
Ventana 340, 500
liste = Crear("Listbox", %HWnd, 0, 0, 0, 320, 400)

WhileLoop 100, 1, -1

    AddStrings(liste,  str$(&LOOP)+". Zeile")

EndWhile

count& = GetCount(liste) - 1
SendMessage(liste,  $000B, 0, 0)'wm_SetRedraw

Sinestar encargado done&

    done& = 1

    WhileLoop count&

        thisRow$ = GetString$(liste, &bucle - 1)
        nextRow$ = GetString$(liste, &bucle)

        If val(thisRow$) > val(nextRow$)

            DeleteString(liste, &bucle - 1)
            InsertString(liste, &bucle, thisRow$)
            done& = 0

        EndIf

    EndWhile

EndWhile

SendMessage(liste, $000B, 1, 0)'wm_SetRedraw
WaitKey
 
22.12.2022  
 




p.specht

Mir ha una erstes Feld el Darstellungslänge 0 Byte manchmal muy geholfen ...
El gestaltbare Sortierung folgt entonces sólo el Einträgen hay.
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
27.12.2022  
 



Zum Quelltext


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

1.707 Views

Untitledvor 0 min.
Gast.0815vor 5 h
ecki28.07.2023
Wilfried Friebe28.05.2023
Alibre01.05.2023
Más...

Themeninformationen

Dieses Thema ha 3 subscriber:

p.specht (1x)
Sven Bader (1x)
H.Brill (1x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie