![]() |
|
|||||||
| 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 |
|
|||
|
Hello all,
I'm writing a simple app for the device that will let you save and restore all your contacts and calendar events. I'm using wm5 and netcf 2 and basic4ppc v6.3. I've encountered several problems I can't seem to figure out. It is related to my use of outlook.dll. The optimized force qvga compilation gives the following error at runtime. Quote:
Quote:
Code:
For i = 0 To PCol_contacts.Count-1
PCol_contacts.RemoveItem(i)
label1.Text="Contact "&i&" removed"
Next
Msgbox("Removed all Contacts")
I encountered the following problem Problem with Contacts but I don't think it's related because for now I'm just ignoring the webpage field. Any ideas? |
|
||||
|
Thanks for the nudge Gary. I see "what you think it is" and it explains an entirely different iteration problem I had a few months ago that I could not explain at the time. I missed the obvious in not trying a reverse iteration I guess
![]() |
|
|||
|
Thank you Gary and agraham.
Reversing the iteration did solve one problem. So what is the theory here? Why an error after deleting half the contacts? Data structure bug? The other problems turned out to be kinda silly. The QGVA compilation didn't work because I named the project outlook. When you compile in this mode it makes a dll named after the project name. This overwrites the original outlook.dll! I'll report this little bug. For the non optimized compilation I just didn't include all the dlls. ![]() Thanks again. |
|
||||
|
After removing contact number 0, contact number 1 becomes 0, contact 2 becomes contact 1... contact n becomes contact n-1.
This code will also work: Code:
For i = 0 To PCol_contacts.Count-1 PCol_contacts.RemoveItem(0) label1.Text="Contact "&i&" removed" Next |
![]() |
| 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 |
| SMS in Outlook | Alex812 | Basic4ppc Wishlist | 3 | 01-20-2008 10:32 AM |
| Problems with outlook.dll | Gerd | Bug Reports | 5 | 12-14-2007 01:35 PM |
| outlook.dll with WM2003SE | luckyluc78 | Basic4ppc Wishlist | 0 | 09-26-2007 09:41 AM |
| Error with Outlook.dll | conf | Questions & Help Needed | 4 | 09-15-2007 06:06 AM |
| 2 questions about Outlook | Alex812 | Questions & Help Needed | 1 | 08-27-2007 07:54 PM |