Toon posts:

Listbox wegschrijven in een .txt ???

Pagina: 1
Acties:

Verwijderd

Topicstarter
ken da en zoja hoe?

ik weet het ik ben de non prof onder de slechten

Verwijderd

Welke taal? Delphi? VB? Java? C++?

  • Tim
  • Registratie: Mei 2000
  • Laatst online: 23-07 15:18

Tim

En wat wil je wegschrijven, de hele listbox, of alleen wat er gekozen is?

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Delphi:
ListBox1.Items.SaveToFile('C:\listbox.txt');

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • Crazy D
  • Registratie: Augustus 2000
  • Laatst online: 15-09 19:11

Crazy D

I think we should take a look.

Begin eens met in welke taal.
Afhankelijk daarvan kun je direct de inhoud naar file saven, of moet je even alle items doorloopen en stuk voor stuk wegschrijven...

Exact expert nodig?


  • markvt
  • Registratie: Maart 2001
  • Laatst online: 17:17

markvt

Peppi Cola

VB:


Dim Listz As Long
On Error Resume Next

Open "list.txt" For Output As #1
For Listz& = 0 To List1.ListCount - 1
Print #1, List1.List(Listz&)
Next Listz&
Close #1

van-tilburg.info -=- meka (sega emulator) - Proud MEDION fanclub member - KOPPIG VOLHOUDEN !


Verwijderd

Topicstarter
oke sorry delphi
Pagina: 1