Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Command Prob

Author
Message
Black Shadow
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 22nd Aug 2005 23:57
This is probably a stupid question but when I run this code
(not ment to really do anything just to show that the program can go through everything) the window just closes. How can I fix this?
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 23rd Aug 2005 10:31
I think there is something wrong with the netgame commands in DB. I think its because something or other has changed in Microsoft. Although, I wouldn't know so much about this, maybe you should ask Blanky personally, because he explained something about this to me earlier.

----Sweet! You've got the same pic as me!----

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Aug 2005 06:51
Just after the line which sets the window size, try:

Always Active On

TDK_Man

Black Shadow
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 24th Aug 2005 23:26
I don't have a line that sets my window size so I added one at the begginig then your command and nothing happened. Any other suggestions?
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Black Shadow
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 25th Aug 2005 01:32 Edited at: 25th Aug 2005 01:34
Wow! That was a really good tutorial, it explained alot but the perform checklist for net sessions still doen't work.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Aug 2005 03:03
It won't if you don't do things in the correct order.

In your snippet above, you are using:

Set net connection 3,myipadress
perform checklist for net sessions

How can you Set Net Connection 3 before the program knows that connection 3 is actually there? You then perform a check for SESSIONS which is only possible AFTER you have connected to the remote machine.

Try this on it's own:

Perform Checklist For Net Connections
NumConnections = checklist quantity()
Print NumConnections

If it prints anything bigger than 0 then connections are available. If it prints 0 then you don't have any connections.

My guess is that it's closing the program because you are attempting to Set Net Connection before you have checked to see if any connections are available, (assuming that your code is the same as posted above).

In that turorial, although it is about writing the program that runs at the other end, you have to do things in the same order to make the initial connection.

Once you have connected, only then do you do a checklist for sessions.

TDK_Man

Black Shadow
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 25th Aug 2005 03:31
That seemed to do it. Thanks for your help.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Aug 2005 15:25

Login to post a reply

Server time is: 2024-09-24 03:23:22
Your offset time is: 2024-09-24 03:23:22