Code: Select all
public void removeRoomVariable(string name)
{
ArrayList rVars = new ArrayList();
rVars.Add(new RoomVariable(name, null));
this._smartFox.SetRoomVariables(rVars);
}
however i receive the following error:
NullReferenceException: Object reference not set to an instance of an object
SmartFoxClientAPI.SmartFoxClient.GetXmlRoomVariable (SmartFoxClientAPI.Data.RoomVariable rVar)
The supplied room variable definetly exists as is shown in the admin tool.
Any help would be greatly appreciated.