English
Forum

Is it Unikode? GridBOX delete

 

Jac
de
Lad
Hallöle, I verzweifel in the momentum on folgendem trouble:I Have a GridBOX, The has multiple selektierbare items and on Button-Click should The marked deleted go. so far so well, only functions my View source not. can someone help?
CompileMarkSeparation
declare grid&,c&,a&,d&
cls
grid&=Create("GridBox",%HWnd,"Uhrzeit;0;82;Zeit;0;40;Ausgeführte Tätigkeiten;0;460",2,8,40,600,302)
d&=Create("Button",%HWnd,"&Neu laden",512,8,96,24)

whileloop 35

    AddString(grid&,Str$(&Loop))

wend

whilenot CLicked(d&)

    waitinput

wend

c&=0
a&=GetCount(grid&)

while LT(c&,a&)

    if GetState(grid&,c&)

        DeleteString(grid&,c&)

    else

        Inc c&

    endif

    EnableWindow d&,0
    EnableWindow grid&,0

    while 1

    wend

    Bitte mit Systemmenü terminate

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
06/03/06  
 




Jörg
Sellmeyer
Hello Jac,
there are me a couple To many seltsame creep in Your code. I habs time something rewritten:
CompileMarkSeparation
Declare Grid&,C&,A&,D&

Proc Button_D

    If GetCount(Grid&) > 0

        print "gelöschte Einträge (Indexnr!)"

        WhileLoop GetCount(Grid&) -1,0,-1Wichtig!!! Von Rückwärts auslesen und löschen

            sonst stimmen die Indizes nicht mehr!!

            If GetState(Grid&, &loop) > 0

                DeleteString(Grid&,&Loop)
                print &loop,

            EndIf

        Wend

    EndIf

EndProc

Cls
Grid&=Create("GridBox",%Hwnd,"Uhrzeit;0;82;Zeit;0;40;Ausgeführte Tätigkeiten;0;460",2,8,40,600,302)
D&=Create("Button",%Hwnd,"&Neu laden",512,8,96,24)

Whileloop 35

    Addstring(Grid&,Str$(&Loop))

Wend

Hauptschleife

While 1

    Waitinput

    If Clicked(D&)

        Button_D(Grid&)

    EndIf

Wend


Lies you time [...]  through.

Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/04/06  
 




Jac
de
Lad
Hm, thanks I probiers time from.

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
06/04/06  
 




Jac
de
Lad
thanks! functions primst!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
06/05/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.486 Views

Untitledvor 0 min.
Langer12/30/20
Ernst05/01/16
RudiB.04/07/16
Erfurt09/22/13
More...

Themeninformationen

this Topic has 2 subscriber:

Jac de Lad (3x)
Jörg Sellmeyer (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