Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How to create a new appointment

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 03:36 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default How to create a new appointment

I'm trying to create a new appointment, but my code:

Code:
    Msgbox"appointments: " & tableAppointments.RowCount )

For i = 0 To tableAppointments.RowCount - 1

    appointment.CreateNew

    appointment.AllDayEvent                 = tableAppointments.Cell( 
"allday", i )
    appointment.Body                         = tableAppointments.Cell( 
"body", i )
    appointment.Categories                     = tableAppointments.Cell( 
"cat", i )
    appointment.Duration                     = tableAppointments.Cell( 
"duration", i )
    appointment.EndTime                     = tableAppointments.Cell( 
"endtime", i )
    appointment.Location                     = tableAppointments.Cell( 
"location", i )
    appointment.ReminderDialog                 = tableAppointments.Cell( 
"reminderDialog", i )
    appointment.ReminderLed                 = tableAppointments.Cell( 
"reminderLED", i )
    appointment.ReminderMinutesBeforeStart    = tableAppointments.Cell( 
"reminderMINS", i )
    appointment.ReminderRepeat                 = tableAppointments.Cell( 
"reminderRepeat", i )
    appointment.ReminderSet                 = tableAppointments.Cell( 
"reminderSet", i )
    appointment.ReminderSound                 = tableAppointments.Cell( 
"reminderSound", i )
    appointment.ReminderSoundFile             = tableAppointments.Cell( 
"reminderSoundFile", i )
    appointment.ReminderVibrate             = tableAppointments.Cell( 
"reminderVibrate", i )
    appointment.Start                         = tableAppointments.Cell( 
"start", i )
    appointment.Subject                     = tableAppointments.Cell( 
"subject", i )
    
    AppointmentsCollection.AddItem( appointment.Value )

Next
doesn't work - meaning, the appointment never shows up the the Calendar (that's the Windows Mobile built-in calendar I'm referring to).

The table has 36 rows, and I've verified that it's reading each row correctly.

No crash, no error - the program just doesn't work... anyone see what I'm doing wrong?


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 09:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The following code works properly:
Code:
Sub App_Start
    App.New1
    App.CreateNew
    AppCollection.New1(
"Appointments")
    App.Start = Now
    App.Duration = 
30
    App.Subject = 
"Test"
    AppCollection.AddItem(App.Value)
End Sub
Maybe some of your values are wrong.
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 08:21 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default

I suppose some of the values could be wrong, but I would be suprised if that were the case.

This particular program is intended to fetch all of the appointments, contacts, and tasks from the device. It loads them into tables (one for each group) and dumps the table to a CSV file (one each for apoointments, contacts, and tasks).

Once the data files are transferred to another device, it loads the CSV files into tables and (is supposed to) recreate the appointments, contacts, and tasks on the target device. It's only that last step that I'm having problems with.

So if the data came from a device, into a table, and into a CSV file; then from CSV to table to device, I wonder how any of the values could be wrong?


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
No way to create a recurring appointment? kolbe Questions (Windows Mobile) 4 12-19-2010 04:15 PM
Outlook appointment category Cableguy Questions (Windows Mobile) 2 05-22-2008 08:36 PM
Lessons or appointment program for private teachers moharj Share Your Creations 5 10-05-2007 02:23 PM
writing appointment paul j Questions (Windows Mobile) 9 09-29-2007 04:07 PM
Copy&paste in appointment Alex812 Questions (Windows Mobile) 2 08-12-2007 12:52 PM


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0