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


Messages In This Thread
python comobject - by keuninkske - May-13-2020, 06:45 PM
RE: python comobject - by buran - May-13-2020, 06:46 PM
RE: python comobject - by keuninkske - May-13-2020, 07:05 PM

Forum Jump:

User Panel Messages

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