The FileDelete function delets an item from the specified file on the MVSP Server.
Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function FileDelete( _ ByVal filePath As String, _ ByVal itemId As String _ ) As Boolean |
C# |
---|
public bool FileDelete( string filePath, string itemId ) |
C++ |
---|
public: bool FileDelete( String filePath, String itemId ) sealed |
J# |
---|
public bool FileDelete( string filePath, string itemId ) |
JScript |
---|
public
function FileDelete( filePath : String, itemId : String ) : bool |
Parameters
- filePath
- is the name of the file that you wish to delete
- itemId
- is the Itemid that you wish to delete
Return Value
True
Remarks
If the item could not be deleted 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 results as boolean
returncode = mvsp.Connect("localhost",9000,"dm","")
If returncode = True then
returncode = mvsp.Logto("MVDEMO","")
If returncode = True then
results = mvsp.FileDelete("CUSTOMERS","1")
End if
End if
returncode = mvsp.CloseConnection()