How to use a term for an OLE object that is a Xojo reserved word

I want to interrogate an Outlook item - called item.
I want to find the class of the item.

I would like to assign the class constant to a variable as follows.

Dim iType As Integer iType = item.class

“Class” is the Outlook item property I need to know, but the IDE won’t allow this to compile because “Class” is a reserved word.

How do I get around that?

try

[quote]
iType = item.value(“Class”)[/quote]

(untested)

Brilliant!
That worked.
Thanks.

Appending a “_” usually works with the Office stuff for names that conflict like this, so maybe it will work with OLEObject in general:

Dim iType As Integer iType = item.class_