Non English contact field names in non English Office causing VB problem

Non English contact field names in non English Office causing VB problem

Post by -mhd » Fri, 29 Apr 2005 14:07:46


The German version of Outlook uses German language internal field
names.

[German]
Telefon Assistent
Telefon geschtlich
Telefon geschtlich 2

instead of

[English]
AssistantTelephoneNumber
BusinessTelephoneNumber
Business2TelephoneNumber

The following statement raises an error because of the space in the
field name.
oContact.Telefon geschtlich = PhoneNum

whereas
oContact.BusinessTelephoneNumber = PhoneNum naturally works just fine.

How can I get around assigning contact fields with spaces in the name?

Thanks,
-mhd
 
 
 

Non English contact field names in non English Office causing VB problem

Post by Michael Ba » Fri, 29 Apr 2005 15:33:30

Hi,

the Object Model doesn know any other than english names.

--
Viele Gre
Michael Bauer - MVP Outlook

 
 
 

Non English contact field names in non English Office causing VB problem

Post by -mhd » Fri, 29 Apr 2005 22:53:11


That's not the experience I had with my German users because when I
switched to using the German field names in a find operation
"ofolder.Items.Find(sFilter)" it quit crashing with an error.

This would make sense because sfilter is a string and allows spaces
but VB objects to the space when used in this manner...
oContact.Telefon geschtlich = PhoneNum

When I originally Googled on this problem I found out that the
internal names are German and everything worked fine in searches.

Thanks,
-mhd
 
 
 

Non English contact field names in non English Office causing VB problem

Post by Michael Ba » Fri, 29 Apr 2005 23:15:36

I not sure whether I understand you or not.Regarding to the sample of
your first post: all property names, available via the class names, are
in english only.

If you want to use them in Find or Restrict, then include the strings in
Chr(34), please.

--
Viele Gre
Michael Bauer - MVP Outlook
 
 
 

Non English contact field names in non English Office causing VB problem

Post by -mhd » Fri, 29 Apr 2005 23:53:50


Hi Michael,

This works
sFilter = "[Telefon geschtlich] = '+49 (179) 5192032'"
ofolder.Items.Find(sFilter)


This doesn't
oContact.Telefon geschtlich = PhoneNum

Are you saying that in the second example I must revert back to
English names?

-mhd
 
 
 

Non English contact field names in non English Office causing VB problem

Post by Michael Ba » Sat, 30 Apr 2005 02:55:53

Yes. All available properties you can see in the Object Browser. There
is nothing else for your second example.

--
Viele Gre
Michael Bauer - MVP Outlook





of
are
in