English
Source / code snippets

double Listboxeinträge Delete

 

###################################################################
DOPPELTE LISTBOXEINTRÄGE LÖSCHEN
speedy function to that delete doppelter Lines in sortierten List-
Boxes.
copyright Sven Bader 2001
this View source is Freeware. with usage Please fountain . Indicate
review and suggestions on: svenbader.de
for possible auftretende Schäden becomes no Liability übernommen.
###################################################################
Declare listbox&,button&
Window %MaxX,%MaxY-640,480
listbox&  =  Control(ListBox,,$54211143,10,28,600,300,%hwnd,0,%hinstance,$0200)
button&   =  Control(Button,double Lines delete,$54010000,10,328,600,30,%hwnd,0,%hinstance,$0200)

WhileLoop 260 Listbox fill

    AddStrings(listbox&,Chr$(add(Rnd(26),65)))

EndWhile

Window (%MaxX / 2 - 320), (%MaxY / 2 - 240) - 640,480 Window in Bildschirmmitte Show
Cls RGB(192,192,192)

Proc DeleteDoubleLines

    Parameters listbox&
    Declare i%
    SendMessage(listbox&,11,0,0) Listbox Refresh blockieren (faster)

    While Neq(i%,Getcount(listbox&))

        If GetString$(listbox&,i%) = GetString$(listbox&,(i% + 1))

            DeleteString(listbox&,i%)
            Dec i%

        EndIf

        Inc i%

    EndWhile

    SendMessage(listbox&,11,1,0) Listbox Refresh again enable

ENDPROC

While %ScanKey <> 27

    WaitInput
    Case GetFocus(button&) : DeleteDoubleLines listbox&

EndWhile

 
08/06/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.871 Views

Untitledvor 0 min.
RudiB.08/12/23
Hans Hermann04/13/15
Pedro Miguel12/06/13
Untitled03/28/12
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie