SmartFoxServer Unity/.NET API
GetVariable Method (varName)
NamespacesSmartFoxClientAPI.DataUserGetVariable(String)
Retrieve a User Variable.
Declaration Syntax
C#Visual BasicVisual C++
public Object GetVariable(
	string varName
)
Public Function GetVariable ( _
	varName As String _
) As Object
public:
Object^ GetVariable(
	String^ varName
)
Parameters
varName (String)
the name of the variable to retrieve.
Return Value
The User Variable's value.
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#
int age = (int)user.GetVariable("age");
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)