Business Opportunities

Search
Directory
Links

Search

Create the future you want! Learn to make money online. Visit our website and start today!  www.exclusivebizopps.com

Programming with eMbedded Visual Basic and the Pocket Outlook Object Model

By , Dec. 26, 2000
This article will show you how to use eMbedded Visual Basic to gain access to your PIM data. Youl also learn how to use the tools to effectively build new applications that enable you to customize the display and manipulate PIM information.

Make Money Online Coming from a programming background, the first thing I always check out when I get a new device is: Are the development tools available so if there something I don like I can do something about it?

Microsoft Outlook is the most commonly used email program on the market today. It has become essentially the industry standard for business email programs. What many people do not realize about Microsoft Outlook is that it has far more power than just functioning as an email program. Microsoft Outlook provides date book calendaring functions, task list management, contact information management, up reminders and more. Microsoft Outlook is the top Personal Information Manager (PIM) in use in business today, on programs it can offer much more functionality for your business.

Internet Business Opportunity I have specific requirements when it comes to PIM functions, so that usually the first thing I look at. The Pocket PC interface, although much better than earlier versions of Windows CE still leaves a bit to be desired, for my particular needs, when it comes to advanced PIM functionality. Personally, I like integrated applications, like Outlook on the PC, everything in a single application, easily accessible and easy to use. For this reason I delved into the Pocket Outlook Object Model (POOM) to see what I could do. It turns out, that you can do just about anything you want, from simply adding new items to your calendar or task list, to advanced queries and manipulation of your data.
Getting StartedYou will need to have eMbedded Visual Basic, the Pocket PC emulator, and the SDKs installed on your PC. If you don already have a copy of these tools, you can order them for free or .

Outlook is a great program. As email programs go, Outlook is known as one of the easiest to use programs on the market. Prophet takes the power and effectiveness of Outlook and turns it into a top notch sales and contact management program. Through the combination of Outlook and Prophet, your business will have a program that will help your business grow and develop.

Free Money The first thing you need to know is that you have full access to the POOM documentation right at your fingertips. It located under the following tree inside the eMbedded Visual Basic Help:

Microsoft Outlook is the most commonly used email programs on the market today and has easily become the industry standard for which business email is used. Prophet is the complete solution that gives you a Microsoft Outlook business contact manager software system that manages contacts, companies and sales opportunities. Leverage your contacts with complete business contact manager software from Prophet 3.0 and link any contact and company to your sales opportunities.

Work At Home Business Pocket PC SDK/Reference/API reference/Pocket Outlook/Interfaces

(pronounced as C Sharp) is a new object oriented programming language, very similar to Java, with the power of C++ and smoothness of Visual Basic. This language was developed by Microsoft as a part of their .NET initiative, for building a wide range of enterprise applications that run on the .NET framework. cleans up many of the syntactic peculiarities of C++ without diluting much of its flavor. is the combination of 70% Java, 10% C++, 5% Visual Basic and 15% new.

Free Online Affiliate Program Now, in order to take advantage of eMbedded Visual Basic ability to display all the properties and methods for a particular object, you need to add a reference to the POOM. This is undocumented and I found it only by trial and error. You will need to know where you installed the Pocket PC emulator and then add a reference to the POOM .dll. You do this by selecting References from the eMbedded Visual Basic Project Menu, then browsing to find the .dll. The following is the path for it:

Get ready to take your applications to the next level by harnessing all of Visual Basic 2005’s tools for programming, debugging, and refactoring code. on book, you’ll get proven techniques for developing even the most complex Visual Basic applications. Expert tips on modeling, user interface design, and testing will help you master the advanced features of this language. You’ll learn how to make writing code more effective so that you can quickly develop and maintain your own amazingly powerful applications.

Auction Coin Money Paper \Windows CE Tools\wce300\MS Pocket PC\emulation\palm300\windows\pimstore.dll

Franchise Business Opportunity When you attempt to add this, you will get an error he selected library is not marked as usable in your current platform. Would you like this library added??Answer Yes. Then select it. Your References window should now look like figure 1:

Best Free Online Affiliate
Figure1: References window, including Pocket Office Object Model.

Blogging Money Thebillivard Next youl need to create some objects to reference information in the POOM. Public polApp As PocketOutlook.Application
Public polItems As PocketOutlook.Items
Public Quote as string

Best Home Based Business PolApp declares a reference to the POOM itself, and polItems to a POOM collection of items. Next you need to initialize these and log on to Outlook. The following code establishes this: Set polApp = CreateObject("PocketOutlook.Application")
polApp.Logon
Quote = chr(34)

Affiliate Marketing Program The Quote variable is used to place quotation marks around strings inside of certain statements, as youl see below.
Retrieving InformationNow that youe connected, it time to fetch some data to get familiar with the POOM data structures. The Pocket PC stores its PIM information in folders, and there are default folders for the basic data types: Calendar, Tasks, and Contacts. These are represented with the following constants: olFolderCalendar,olFolderTasks, and olFolderContacts.

Money Site Thebillivard Com Let take our polItems object and assign some data to it. First, let get today appointments by first setting polItems to the default calendar folder as follows: Set polItems = polApp.GetDefaultFolder(olFolderCalendar).Items

Online Business Opportunity If you were to check out some of the properties of polItems at this point like polItems.count, you would get the total number of items in your calendar, past, present, and future. Clearly we don want to look through each item to determine whether it start date is today. Thankfully, Microsoft has provided a method called estrict?that enables us to select subsets of information in these folders. You can use it as follows to get just a list of today appointments: strquery = "[Start] = " & Chr(34) & formatdatetime(Now,vbShortDate) & Chr(34)
Set polItems = polItems.Restrict(strquery)

Pay Per Click Affiliate The variable trquery?looks like this after we set it up: [Start] = ?1/7/00?

Cnn Money The chr(34) generates a quotation mark character. The next statement causes Outlook to restrict the items in the polItems collection to only things that match the query specified in the restrict clause. Now, if you iterate through the collection you only get today appointments. Declare a variable to hold an individual appointment and use the following loop to see each one. Dim polAppt As PocketOutlook.AppointmentItem
Dim x as integer

Business Opportunity Lead For x = 1 to polItems.count
Set polAppt = polItems.items(x)
Next x

Affiliate Program Directory Well, we have successfully opened and fetched today appointments. The query we used in the above example was very simple, but can be enhanced to support multiple conditions and sorting options. A multiple condition might be: [Start] > ?/1/00?and [IsRecurring] = True

Making Money Program This selects all recurring appointments that start after Jan 1, 2000. Using Parenthesis, equality operators, Boolean tests, and/or conditions, etc. you can create fairly sophisticated queries against your PIM data.

Work From Home Business As a more advanced example let open up the Contacts folder. Use the following code to get a reference to your complete contacts collection: Set polItems = polApp.GetDefaultFolder(olFolderContacts).Items

Internet Marketing Affiliate Now, we can ?restrict?the data to one particular category as follows: Strquery = Categories] = ?& Quote & usiness?& Quote
Set polItems = polItems.Restrict(strquery)

Money In The Bank This selects only contacts in the usiness?category. We can further restrict the collection returned by company using the following query: Strquery = Categories] = ?& Quote & usiness?& Quote
Strquery = strquery & ?and [CompanyName] = ?& Quote & icrosoft?& Quote
Set polItems = polItems.Restrict(strquery)

Internet Home Business This selects all contacts with a Company Name of Microsoft in the Business category. You can use nd?and r?qualifiers to build your own complicated selection and search criteria.

Credit Card Affiliate Program These techniques apply to all the different types of data (Calendar, Tasks, and Contacts).
Creating New InformationThere are two ways to create new information: programmatically and user entry. Programmatically means the software creates a new object, sets the fields to the appropriate values, and then saves the record back. The following examples use Contact data for an example, but this applies to all the different data types. This next example creates a new contact record this way.

Unclaimed Money Dim pContact As PocketOutlook.olContactItem

Mlm Business Opportunity Set pContact = polApp.CreateItem(olContactItem)
pContact.FirstName = ohn?br> pContact.LastName = mith?br> pContact.CompanyName = . Datum Corporation?br> pContact.BusinessTelephoneNumber = ?23-456-7890?br> pContact.Save

Ppc Affiliate Program Simple enough!

Money Exchange Now, the second method is to create the item the same way, but then let the user set the data using the standard Outlook entry forms.

Income Opportunity Home Based Dim pContact As PocketOutlook.olContactItem

Make Money With Affiliate Set pContact = polApp.CreateItem(olContactItem)
pContact.Display
pContact.Save

Money Gram The only reason to use this method, would be to add functionality to an application that lets the user create a PIM data item as part of some other functionality, or as part of some integrated solution.

Home Internet Based Business The .Display method causes the basic Outlook contact entry form to be show with all blank fields. The user then enters the data and hits the OK button at which point your program continues with the .Save method. You can interrogate and change the data after the display method to perform validation, and so forth.

Advertising Affiliate Program To add a Task or any other type of information you use the appropriate pre-defined constants (olContactItem, olTaskItem, olAppointmentItem) where necessary.
SortingOne of the most basic shortcomings in the Pocket Outlook version lies in the contact applications inability to sort by anything except the ile As?field as defined in your desktop Outlook version. That all well and good, but if you want your contacts sorted by Company Name or First Name on an ad-hoc basis you were just out of luck.

Make Money At Home The good news is that you can write your own basic contact sorting application very easily with eMbedded Visual Basic and do whatever sorting you want. Using the variable definitions from above: Set polItems = polApp.GetDefaultFolder(olFolderContacts).Items

Homebased Business Opportunity This references the entire contacts collection. To simply sort on any field you just use the ?sort?method as follows: Call polItems.Sort("[CompanyName]", False)

Online Affiliate Program This sorts the polItems collection on the CompanyName]?field and the False means sort it in ascending order. How simple is that! The list of all the fields and their names in a particular collection can be found in the POOM documentation.

Money Investing Unfortunately there is one major restriction here: You can only sort on a single field (at least I haven discovered how to sort on multiple fields). So for example you couldn sort on LastName within CompanyName, which would be really nice.

Work At Home Based Business You can also sort the appointment and tasks collections. For example, to sort your tasks by priority use the following code: Call polItems.Sort("[Importance]", True)

Affiliate Sales Program This call sorts your tasks by priority in descending order, which is High to Low.
And Don forget Searching?/h4> You can search your data in any of the apps by using the ?find?and ?findnext?collection methods. The criteria that you specify for your search can be a simple search like CompanyName] = BC or complex using multiple conditions using and/or. Searching can again be used on any type of data!
ConclusionWell, I hope that this brief introduction to the POOM has provided you with some basics that you can now take away to play with and expand to suit your own needs. My intent in this article was to demonstrate two things: that eMbedded Visual Basic is powerful enough to build dynamic and useful business functionality, and to show that you can tap into your own data to enhance the basic capabilities of Pocket Outlook. This is my first Pocketpc.com article, and I hope you find it effective and useful. For more information on using eMbedded Visual Basic and the POOM see the following Microsoft Knowledgebase Article entitled, . Related Articles: Not All Record Sets Are Created Equal?/a>

[ Comment, Edit or Article Submission ]

Share this:

Add To Del.icio.us Add To Reddit Add To Yahoo MyWeb Add To Google Bookmarks Add To Furl Fav This With Technorati Add To Newsvine Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This Digg This

More about:

Dec January 2009 Feb
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Related Blog of Business Opportunities on Sphere Business Opportunities Blog on Technorati

Business Opportunities

Copyright © 2008 www.exclusivebizopps.co.uk. All rights reserved.
Valid XHTML 1.0 Transitional

Training Center Computer Training Courses Online