Btrieve Classes for .NET 8 - How to set localtion of DAT file in DDF

58 views Asked by At

I use DbSetFileName function in Btrieve Classes for .NET 8 library to change the location of DAT files. Although the returned value is 0 after the function call. But when I check the DAT info in DDF then it not change

enter image description here

This is my VBNET code:

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim vbm As Compat = new BtLib.Compat()
        vbm.DDFDir = "C:\Users\vbnet-vm\Desktop\samples\vbSamp\DDF"
        vbm.DbLoadDDF()
        Dim mintTBNo = vbm.DbSetFileName("test", "C:\Users\vbnet-vm\Desktop\samples\vbSamp\OE_JYUH.DAT")

        MessageBox.Show("hellow")

    End Sub
0

There are 0 answers