From iLab Cookbook

Toolkits: HowToAddValuesToTheSharedDictionary

<< Back to the .Networking page

Integer: places an integer into a shared dictionary called SD at the path /value:

this.SD["/value"] = 5;

String: places a string into a shared dictionary called SD at the path /value:

this.SD["/value"] = "hello";

Vector: creates a vector and places it into a shared dictionary called SD at the path /value:

SharedDictionary.Vector v = new SharedDictionary.Vector();
this.SD["/value"] = v;

Vector Elements: places an integer into the last element of a vector. The vector is in the shared dictionary called SD at the path /value.

this.SD["value#-0"] = element;


Retrieved from http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/HowToAddValuesToTheSharedDictionary
Page last modified on December 31, 2005, at 12:05 AM