![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Tried to write an appointment into both PPC-outlook aswell Desktop-outlook.
Used the example code and added the newes DLL's to the project. Can't findback the results in outlook. There are no error-messages. What can be wrong ![]() Last edited by paul j : 09-23-2007 at 05:26 PM. |
|
|||
|
i started with:
Appointment.new1 Appointment.Subject = aSubject Appointment.Start = DateParse("10/25/2007") + (TimeParse("13:35") Mod cTicksPerDay) PimCollection.AddItem(appointment.New1) now i have the code, stille without results Appointment.new1 PimCollection.New1("Appointments") Appointment.New1 Appointment.Subject = aSubject Appointment.AllDayEvent = true Appointment.Start = DateParse(aDate) PimCollection.AddItem(appointment.New1) |
|
|||
|
Hi Erel,
I Already found the change you mentioned, but stil without resuls. I looked into the watch and found for the date(appointment.start.value) = 01/01/0001. I don't think I want an appointment in this year. Value for appointment.Subject = 0 all this with the code : adate = "02/17/2007" aSubject = "test" Appointment.new1 Appointment.CreateNew Appointment.Subject = aSubject Appointment.AllDayEvent = true Appointment.Start = DateParse(aDate) PimCollection.New1("Appointments") PimCollection.AddItem(appointment.value) |
|
|||
|
Hi Erl,
I think I have to experiment with the dateformat. Normaly in the Netherlands we use dd-mm-yyyy. In the debugger yhe dateparse gives back a 0(zero) withe the format mm/dd/yyyy is returns a proper count of ticks Sub Globals DateFormat("dd-mm-yyyyy") End Sub Sub App_Start frmMain.show End Sub Sub GetDate Dim Date, subject NewDate ="17/10/2007" subject = "test" AddAppointment(NewDate,subject) End Sub Sub AddAppointment(aDate, aSubject) 'pre aDate and aSubject have correct values 'post event has been added into the calender Appointment.new1 Appointment.CreateNew Appointment.Subject = aSubject Appointment.AllDayEvent = true Appointment.Start = DateParse(aDate) PimCollection.New1("Appointments") PimCollection.AddItem(appointment.value) Msgbox(PimCollection.Count) End Sub Last edited by paul j : 09-24-2007 at 05:58 PM. |
|
||||
|
There is a new tutorial about Date and Time: http://www.basic4ppc.com/forum/forumdisplay.php?f=19
If you set DateFormat("dd-mm-yyyy") then you should later use the exactly same format in DateParse. Note that you wrote an extra 'y' in DateFormat. |
|
|||
|
Hi Erel,
it seems the Outlook objects doesn't accept te parameters. I tried several formats/system settings on mu Desktop and formatsettings in the code, but with the debugger the content of Appointment.start is always 01/01/0001 or 0 (zero) depending of the used formats and the PimAppointment.count is always 0 (zero). Scubaticus (another Dutch-user) and I have simulair problems with the system-settings and b4ppc combination. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No way to create a recurring appointment? | kolbe | Questions & Help Needed | 2 | 07-02-2008 06:43 PM |
| Outlook appointment category | Cableguy | Questions & Help Needed | 2 | 05-22-2008 08:36 PM |
| How to create a new appointment | willisgt | Questions & Help Needed | 2 | 05-15-2008 08:21 PM |
| JPEG to byte array without writing to file | brathbone | Questions & Help Needed | 2 | 03-01-2008 05:59 AM |
| Copy&paste in appointment | Alex812 | Questions & Help Needed | 2 | 08-12-2007 12:52 PM |