Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
For an ERP i need to cut the title in 3 custom iproperties.
My rule work only partially.
I succed to cut the title in 3 variable of 30 character but I can't stock into my custom properties....
Dim TitrePartie1, TitrePartie2, TitrePartie3 As String TitrePartie1 = Left(iProperties.Value("Summary", "Title"), 30) TitrePartie2 = Mid(iProperties.Value("Summary", "Title"), 31, 30) TitrePartie3 = Right(iProperties.Value("Summary", "Title"), 30) MessageBox.Show(TitrePartie1) ' Pour test: affiche le titreERPi et le nombre de charactères 'MessageBox.Show(TitrePartie1 & " " & Len(TitrePartie1) & vbLf & _ 'TitrePartie2 & " " & Len(TitrePartie2) & vbLf & _ 'TitrePartie3 & " " & Len(TitrePartie3) & vbLf _ ', "iLogic ")
'The 3 lines below don't work... Do you understand why?
'The 3 custom properties TitreERP1 & TitreERP2 & TitreERP3 are already created.
iProperties.Value("Custom", "TitreERP1") = TitrePartie1 iProperties.Value("Custom", "TitreERP2")= TitrePartie2 iProperties.Value("Custom", "TitreERP1") = TitrePartie3
'When I try iProperties.Value("Custom", "TitreERP1") = "a" it's work :(
Thanks
Solved! Go to Solution.