Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Reading Records Problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sockoo




PostPosted: Mon Jun 19, 2006 11:38 pm   Post subject: Reading Records Problem

Alright before i list what my error is i'll just explain to you what im trying to accomplish so your not totally lost. I have a record file which contains the name of the albulm how many tracks are on the albulm and the songs that are on it. Im trying to take the users request of a song and tell them what albulm it is on.

Here's my attempt ..

code:

procedure songEntered (text : string)
    cls
    Get % Opens record
    put "The song is found on the following cd's : "
    loop
        get : sn, cdname : *, tracknum
        for i : 1 .. tracknum
            get : sn, song : *
            if song = GUI.GetText (songTextField) then
                put cdname
            end if
        end for
        exit when eof (sn)
    end loop
    close (sn)
    dispose % Disposes of TextField
    choice % creates search and new buttons
end songEntered
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: