-
Topic
-
I’m building an applet to retrieve an info from an addressbook ! On win2k platf. my code works great but on win9x platf. no way to obtain info required ! Any idea ?
here ‘s the code:
Sub Main(Client, GWEvent)
Dim usr
Dim Wiz01
Dim Wiz02
Dim Instructions1
Dim Instructions2
Dim Instructions3
Dim AddressBooks
Dim AddressBook
Dim objAddressBookEntries
Dim objAddressBookEntry
Dim objAddressBooks
Dim objAddressBookusr = GroupWise.EnvUserID()
GroupWise.EnableCommand(638) ‘RuleCreate()
GroupWise.EnableCommand(639) ‘RuleDelete()
GroupWise.EnableCommand(62) ‘RuleListDlg()Set AddressBooks = GroupWise.AddressBooks
for Each AddressBook in AddressBooks
If AddressBook.name = “Rubrica di indirizzi Novell GroupWise” or AddressBook.name = “Novell GroupWise Address Book” then
‘MsgBox(AddressBook.Name)
Set AddressBook = AddressBooks.Item(“Novell GroupWise Address Book”)
If IsEmpty(AddressBook) then
MsgBox(“Non trovo: Novell GroupWise Address Book !”)
Set AddressBook = AddressBooks.Item(“Rubrica di indirizzi Novell GroupWise”)
If IsEmpty(AddressBook) then
MsgBox(“Non trovo: Rubrica di indirizzi Novell GroupWise !”)
Set AddressBooks = nothing
Exit Sub
End If
End If
End If
Next‘MsgBox(“Using : “&AddressBook.Name)
‘MsgBox(“User : “&usr)for each objAddressBookEntry in AddressBook
if (objAddressBookEntry.Title <> “*”) and (objAddressBookEntry.UserID = usr) then
FW_TO = objAddressBookEntry.Title
MsgBox(“Info retrieved ! “&FW_TO)
end if
nextIf FW_TO = “” Then
MsgBox(“Info unavailable !”)
Exit Sub
End If
(*) on win2k I retrieve exactly info stored in TITLE field but on win9x the field FW_TO is empty !!! Maybe I’m wrong ?
- You must be logged in to reply to this topic.