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

Username:   Password: 
 RegisterRegister   
 Connect 4 and the internet
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SuperGenius




PostPosted: Mon Mar 29, 2004 7:29 pm   Post subject: Connect 4 and the internet

This is the internet version of my connect 4 game, but it gets an error "variable has no value" on line 214, after you have tried to establish a connection. The only variable on this line is " choice " and it already has a value that has not been erased because it is what you use to decide between hosting or joining a server. Would someone please explain the problem here to me?


con4musicNET.t
 Description:

Download
 Filename:  con4musicNET.t
 Filesize:  7.1 KB
 Downloaded:  215 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
omni




PostPosted: Mon Mar 29, 2004 8:33 pm   Post subject: (No subject)

try getting rid of the
'var choice:int'
inside the startup procedure. When you declare variables in procedures, they are local and can't be used after the procedure is finished, they are destroyed. So choice may acutally be destroyed, and you already declared choice in the main program.
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: