English
Forum

Data from of/ one Text File read...

 
Hello on all sides,
i sit already since hours on this trouble and come not further

I try a choice Box to create, which The Vorgaben a ini or. Text File reads .
The Text File is How follows aufgebaut:

Hans
Jürgen
Fritz
Joseph

CompileMarkSeparation
Def &False 0
Def &True 1
Declare hWin&, hCombo&, Quit&,Arbeiter&
hWin& = @Create("Window", %hWnd, "ChoiceBox", 0, 0, 320, 200)

If hWin&

    hCombo& = @Create("ChoiceBox", hWin&, "", 10, 10, 280, 150)

    WhileLoop 1, 10, 1

        Arbeiter&=ReadText &loop,"Arbeiter.txt"
        @AddChoice(hCombo&, "Arbeiter " + @Str$(Arbeiter&))

    EndWhile

    Quit& = &False

    Repeat

        WaitKey

        If %Key = 2

            Quit& = &True

        EndIf

    Until Quit& = &True

EndIf

'-End-------------------------------------------------------------------
End
 
05/02/11  
 




Nico
Madysa
ReadText not working integrally so, How You it to you vorstellst.
best make You it, in the You The File by Reset open and input ausliest.
CompileMarkSeparation
declare zeile$
Assign #1,"Arbeiter.txt"'Der Datei wird eine Nummer zugewiesen
Reset #1'Datei zum Lesen geöffnet

whilenot EoF(#1)'solange Ende der Datei nicht erreicht wurde

    input #1,zeile$'Eine Zeile deiner Datei wird eingelesen
    AddChoice(hCombo&,"Arbeiter " + zeile$)

EndWhile

Close #1'Datei geschlo
span>
 
Nico Madysa
05/02/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.027 Views

Untitledvor 0 min.
Member 007717910/18/18
Samy01/12/18
W.L.06/06/17
Ernstmeinhard01/28/16
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (1x)
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