5.2.1 Declare Variables

Three variables are used in the following samples: iSession, iRet, and sBuff. Declare them on the General Declarations section of your form:


Dim iSession as Integer, iRet as integer, sBuff as String

iSession is used to contain the LANSA session handle, iRet is used to receive the return code from LANSA calls, and sBuff is a general purpose buffer for data retrieved from the host.