Quantcast
Channel: Themen - Paules-PC-Forum.de
Viewing all articles
Browse latest Browse all 42347

Clearlist funktioniert nicht.

$
0
0
Hallo, guten Tag.
Ich möchte bitte eine Editbox löschen mit "ClearList".
Es funktioniert nicht.

Danke.
Gruss

Quellcode

  1. {$cleq}
  2. declare url$,urlpart$,text$
  3. declare b_esp_on&,b_esp_off&,b_cls&
  4. declare ende&,editbox&,schrift&
  5. Window 20,20-600,600
  6. Cls RGB(230,230,230)
  7. SetTimer 200
  8. urlpart$="0ON"
  9. url$="http://192.168.2.102/?pin="+urlpart$
  10. b_esp_on& = Create("Button",%hwnd,"esp-on", 10, 20, 80, 24)
  11. b_esp_off& = Create("Button",%hwnd,"esp-off", 10, 45, 80, 24)
  12. b_cls& = Create("Button",%hwnd,"cls", 320, 20, 80, 24)
  13. editbox&=Create("multiedit",%hwnd,"",110,20,200,400)
  14. schrift&=Create("Font","ARIAL", 16,0, 0,0,0)
  15. ende&=1
  16. While ende&
  17. WaitInput
  18. Case %wmTimer : TimerProc
  19. If Clicked(b_esp_on&)
  20. urlpart$="0ON"
  21. url$="http://192.168.2.102/?pin=0ON"
  22. EndIf
  23. If Clicked(b_esp_off&)
  24. urlpart$="0OFF"
  25. url$="http://192.168.2.102/?pin=0OFF"
  26. EndIf
  27. If Clicked(b_cls&)
  28. ClearList editbox&
  29. EndIf
  30. endwhile
  31. killtimer
  32. end
  33. proc TimerProc
  34. downloadfile(url$)
  35. while %Loading
  36. waitinput 333
  37. endwhile
  38. text$=text$+$Download+Chr$(13)+Chr$(10)
  39. SetText editbox&, text$
  40. endproc
Alles anzeigen

Viewing all articles
Browse latest Browse all 42347