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

Username:   Password: 
 RegisterRegister   
 cant call procedure
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
msimard8




PostPosted: Mon Dec 20, 2004 1:19 pm   Post subject: cant call procedure

ok...in this program why doesnt the procedure shop be called if a is pressed


helpshop.t
 Description:

Download
 Filename:  helpshop.t
 Filesize:  1.05 KB
 Downloaded:  148 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Mon Dec 20, 2004 1:55 pm   Post subject: (No subject)

It is called. It's just that you don't know it because there is no View.Update between the calling of shop and your cls. Hence, nothing shows up.
You're going to have to rearange your loop structure a little bit. I suggest having all your input stuff at the top, any modification and manipulation code in the middle, and drawing stuff at the end. Drawing stuff at the end should be in the form of:

    cls
    Draw.AllYourStuff
    View.Update
    delay (#)
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  [ 2 Posts ]
Jump to:   


Style:  
Search: