Welcome to Forums Sign in | Join | Help | Forums
in Search


Loading a Participant

Last post 11-12-2003 11:05 AM by Eric Aldrich. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-20-2003 7:00 PM

    Loading a Participant

    Does anyone know how to load the participants to an event? I am trying to change a participant attribute in an export macro. I need to load the participant before I can change it. Thanks, Eric Aldrich
  • 11-12-2003 11:05 AM In reply to

    Loading a Participant

    The following is the answer I got from Blackbaud's support. (They replied the next day, I've been slow in posting) The answer works fine. There is a System Record ID in a Participant Export. You can use the System Record ID to load the Participant and then loop through the participant's Attributes to change them. Here is some sample code that should help you out. In my example the System Record ID is the first field I selected in the Export, so the Field index is 1. Public Sub PartExp(oRow As IBBExportRow) Dim lId As Long Dim oPart As CParticipant Set oPart = New CParticipant oPart.Init REApplication.SessionContext If oRow.BOF Then MsgBox "start" ElseIf oRow.EOF Then MsgBox "Finish" Else 'Get the System Record ID, which is the first field in the Export Row lId = oRow.Field(1) 'Load the Participant. oPart.Load lId MsgBox oPart.Fields(Participants_fld_LastName) End If oPart.CloseDown Set oPart = Nothing Set oRow = Nothing End Sub
Page 1 of 1 (2 items)