Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python comobject
#1
hello,

i am learning about comobject in python
but the internet seems not to have so many clear information about it
does somebody know a clear explanation or a tutorial about comobject?

my problem:
we are retrieving a buch of records from exchange
we seem to have data comming in
we use .restrict method
but when i do
print(len(comobject before restrict))
and
print(len(comobject after restrict))
i get twice the value 2147483647

my code

print(len(appointmentst))
...    begin = dt.date.today()
...    print(begin)
...    end = begin + dt.timedelta(
...        days=7);  
...    print(end)
...    restriction = "[Start] >= '" + begin.strftime("%m/%d/%Y") + ' 12:00 AM'"' AND [End] <= '" + end.strftime(
...        "%m/%d/%Y") + ' 12:00 AM'"'"
...    print(restriction)
...    restrictedItems1 = appointmentst.Restrict(restriction)
...    print(len(restrictedItems1))
anyhow, how do i know what is in this comobject?
because, the result of this is afterwards handeled by an for loop an this one never starts, so the comobject seems to be empty
Reply
#2
what is comobject in the first place?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
yeah, thats actualy also part of my question :p

what i know so far:
-it has something to do with VBA
-i get it when i try to retrieve data from outlook via win32com package


much more i do not understand myself from google searches
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020