RoboGetVariableMethod to set the value of Robo-FTP script variable

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Using Robo-FTP > Using COM/OLE to Control Robo-FTP > COM Methods >

RoboGetVariableMethod to set the value of Robo-FTP script variable

Overview

Method to set the value of the specified Robo-FTP script variable. It does the same thing as the SET command except that if your session is non blocking this will block. If strVariable is null the behavior is the same as calling SET with no arguments in that all variables are set to their default values. If strVariable is a valid variable name and strValue is null strVariable is deleted.

 

C++ Definition

void RoboSetVariable( _bstr_t strVariable, _bstr_t strValue )

 

VB Definition

RoboSetVariable( Variable As String, Value As String ) As Void

 

C# Definition

void RoboSetVariable( String strVariable, String strValue )

 

VB.NET Definition

RoboSetVariable( Variable As String, Value As String ) As Void

 

Throws an exception on failure such as no session started or invalid variable name.