The FileRoot method opens an index on the server.Key method


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

Syntax

Visual Basic (Declaration)
Public Function FileRoot( _ 
   ByVal filename As String,  _ 
   ByVal index As String _ 
) As Object
C#
public object FileRoot(
   string filename,
   string index
)
C++
public:
 Object FileRoot(
   String filename,
   String index
) sealed 
J#
public object FileRoot(
   string filename,
   string index
)
JScript
public  function FileRoot(
   filename : String,
   index : String
) : Object

Parameters

filename
index

Return Value

mvIndex object

Remarks

If the specified filename or index does not exist then an exception is generated

 Copy Code
 Dim M As New rocketsoftware.MVSP.Pick
 Dim I As rocketsoftware.MVSP.Pick.mvIndex
 Dim x As String
    M.Connect("localhost", 9000, "DM", "")
    M.Logto("sqldemo", 1)
    Try
        I = M.FileRoot("customers", "a3")
        I.indexKey = "miami"
        I.itemId = ""            
        x = I.FileKey("x")
    Catch ex As Exception
        MsgBox(ex.ToString)
    End Try
 

See Also