Vb.net clear a activity

kobejul08 Messages postés 113 Date d'inscription vendredi 15 avril 2005 Statut Membre Dernière intervention 3 octobre 2005 - 19 juil. 2005 à 12:19
kobejul08 Messages postés 113 Date d'inscription vendredi 15 avril 2005 Statut Membre Dernière intervention 3 octobre 2005 - 19 juil. 2005 à 12:49
Bonjour qq un peut il m'aider a clearer une activité en VB.net .
car ici dans mon développement ça ne marche pas. Pourtant j'ai pas vraiment de message d'erreur. Merci d'avance.



If ComboBox8.Text = "Activities"
Then
Dim histype
As HistoryType

Dim NewHistory
As Act.Framework.Histories.History

Dim sRegarding
As
String
'Some text for the regarding
sRegarding = ComboBox7.Text & " - " & TextBox1.Text & " " & "<ok>" & TextBox6.Text & " inserted : " & Now & "</ok>"

'Get a contact record
'Retrieve a history type
histype = ACTFM.Histories.GetHistoryType(ComboBox1.Text)

'Create a new history
NewHistory = ACTFM.Histories.CreateHistory(pContact, Guid.Empty, histype,
False, System.DateTime.Now, System.DateTime.Now, sRegarding, "")
NewHistory.Update()

Dim PewHistory
As Act.Framework.Histories.History = pHistory
MsgBox("a")
PewHistory.Details = pActivity.Details
PewHistory.HistoryType.Name = ComboBox1.Text



Dim theActiveUsers
As User() = ACTFM.Users.ActiveUsers


MsgBox("d")



Dim cdg
As CalendarDelegates.CalendarDelegateGrantor = ACTFM.CalendarDelegates.GetCalendarDelegateGrantorByAccessorId(theActiveUsers(theActiveUsers.Length - 1).ID)


MsgBox("e")



If
Not (cdg
Is
Nothing)
Then


MsgBox("f")


ACTFM.Activities.ClearActivity(pActivity, cdg, PewHistory)


MsgBox("g")



Else


MessageBox.Show("cdg was null")



End
If



End
If


Qq a t il une suggestion?

2 réponses

yassine0502 Messages postés 3 Date d'inscription lundi 18 juillet 2005 Statut Membre Dernière intervention 14 novembre 2005
19 juil. 2005 à 12:46
salut c yassine tu peut metre dans la conditon IF textbox9.comparto("le text k t'a")


j crois k c mieu bon voila mon e-mail [mailto:yassine0502@hotmail.com yassine0502@hotmail.com] merci
0
kobejul08 Messages postés 113 Date d'inscription vendredi 15 avril 2005 Statut Membre Dernière intervention 3 octobre 2005
19 juil. 2005 à 12:49
Que veux dire le".comparto" je connais pas cette fonction?
Et je le pace ou ce IF?
Merci
0
Rejoignez-nous