3 Replies Latest reply on Dec 11, 2013 11:05 AM by Charley Saint

    Epdm API - IsLoggedIn

    Faur Arama

      I'm a beginner in EPDM API and I try some examples. The first issue is that IsLoggedIn return always False, even I'm logged in vault. This is the code:


      Public Class StandAloneForm

          Private Sub VaultButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VaultButton.Click
              Dim vault As IEdmVault5
              vault = New EdmVault5
              Dim tt As Boolean
              tt = vault.IsLoggedIn
              Debug.Print("We are" + IIf(vault.IsLoggedIn, "", " not") + " logged into a vault.")

              Dim VerMajor As Integer
              Dim VerMinor As Integer
              vault.GetVersion(VerMajor, VerMinor)
              MsgBox("EPDM Version is " + VerMajor.ToString() + "." + VerMinor.ToString())
          End Sub
          Private Sub StandAloneForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
              Dim vault As IEdmVault8 = New EdmVault5
              Dim Views() As EdmViewInfo = {}
              vault.GetVaultViews(Views, False)
              For Each View As EdmViewInfo In Views
              If VaultsComboBox.Items.Count > 0 Then
                  VaultsComboBox.Text = VaultsComboBox.Items(0)
              End If
          End Sub
      End Class