The FileSelect function selects all the items in the specified file on the MVSP Server. The FileSelect function is the same as the select statement in Pick Basic.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function FileSelect( _ 
   ByVal filePath As String _ 
) As Boolean
C#
public bool FileSelect(
   string filePath
)
C++
public:
 bool FileSelect(
   String filePath
) sealed 
J#
public bool FileSelect(
   string filePath
)
JScript
public  function FileSelect(
   filePath : String
) : bool

Parameters

filePath
Is the name of the file that you wish to select

Return Value

True

Remarks

If the item could not be selected then statuscode and statusmessage properties will be set with the correct error message number and text

Example connects and selects (Pick BASIC) the CUSTOMERS file

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    returncode = mvsp.Logto("MVDEMO","")
    If returncode = True then
       returncode = mvsp.FileSelect("CUSTOMERS")     
    End if
 End if
 returncode = mvsp.CloseConnection()
 

See Also