The FileReadv function returns the attribute specified from the item, from the specified file on the MVSP Server.
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function FileReadv( _ ByVal filePath As String, _ ByVal itemId As String, _ ByVal attribute As Integer _ ) As String |
C# |
---|
public string FileReadv( string filePath, string itemId, int attribute ) |
C++ |
---|
public: String FileReadv( String filePath, String itemId, int attribute ) sealed |
J# |
---|
public string FileReadv( string filePath, string itemId, int attribute ) |
JScript |
---|
public
function FileReadv( filePath : String, itemId : String, attribute : int ) : String |
Parameters
- filePath
- is the name of the file that you wish to read from
- itemId
- is the Itemid that you wish to read
- attribute
- is the attribute to return. A value of 0 will just check to see if the item exists and will set statuscode = 0 if present or 202 if not present.
Return Value
a string containing the item that was read
Remarks
If the item could not be read then statuscode and statusmessage properties will be set with the correct error message number and text Copy Code
Dim returncode as boolean
Dim mvsp as new rocketsoftware.MVSP.Pick
Dim params as string = ""
Dim results as string = ""
returncode = mvsp.Connect("localhost",9000,"dm","")
If returncode = True then
returncode = mvsp.Logto("MVDEMO","")
If returncode = True then
results = mvsp.FileReadv("CUSTOMERS","1",3)
If mvsp.statusCode = 0 then ' Record read OK
Msgbox(results)
End if
End if
End if
returncode = mvsp.CloseConnection()