Public Sub MemberIDs()

   Dim oMember As CMembership

   Set oMember = New CMembership

   oMember.Init REApplication.SessionContext

   

   oMember.Load 109

   

   'Display the Membership ID

   MsgBox oMember.Fields(MEMBERSHIP_fld_MemberTableID)

   

   Dim oCard As CMembershipCard

   

   For Each oCard In oMember.Cards

       'Display the MembershipCardID

       MsgBox oCard.Fields(MembershipCards_fld_MembershipCardsID)

   Next oCard

   

   oMember.CloseDown

   Set oMember = Nothing

   Set oCard = Nothing

End Sub

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures. Our Customer Support can help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the VBA and API modules, contact your account manager.