Switch to: V12V11V10V9V8V7V6V5

VServer Class: INI File Methods

VServer.GetVariable()

Declaration:

GetVariable( inName as String ) as String

Parameters:

  • inName - The name of server variable.

Description:

This method allows you to read a value of the specified Server Variable. The name of the variable is case insensitive. With names of variables you can use constants of the INI-file of VServer. For more information, refer to the Valentina Server documentation.

Example:

cache = server.GetVariable( "CacheSize" )

VServer.SetVariable()

Declaration:

SetVariable( 
	inName as String, 
	inNewValue as String )

Parameters:

  • inName - The name of the server variable.
  • inNewValue - A new value for this variable.

Description:

This method allows you to change a value of the specified Server Variable. The name of variable is case insensitive. With names of variables you can use constants of the INI-file of VServer. For more information, refer to the Valentina Server documentation.

NOTE: Some variables require a restart of VServer to affect changes.

Example:

server.SetVariable( "CacheSize",  8 )