Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, kzhao, alibaba, 7th_zorro), 650 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Send_Var or Send_Data for sending structs #323742
05/17/10 03:37
05/17/10 03:37
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline OP
Senior Expert
fastlane69  Offline OP
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Anyone know if they both currently work?
Anyone know if there is any difference between the two if so?

Re: Send_Var or Send_Data for sending structs [Re: fastlane69] #323793
05/17/10 14:50
05/17/10 14:50
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Yes, send_var updates a global var or struct and send_data just sends data, without needing the same struct on the receiver side.

I got used to call send_data, it offers more flexibility. You need an event on the receiver side to receive that data.

Re: Send_Var or Send_Data for sending structs [Re: Spirit] #323809
05/17/10 16:49
05/17/10 16:49
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline OP
Senior Expert
fastlane69  Offline OP
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Ahhhhh...now this is very very interesting.

So what you are saying is that Send_Var will send a pre-defined Struct and thus has to pre-defined on both client and server prior to use....but Send_Data can send anything to anyone without having copies on both sides? Did I get that right? laugh

If so that's really fantastic and you're right, Send_Data becomes WAY flexible!


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1