Converting MasterList to string/text format

  • Thread starter Thread starter mounil
  • Start date Start date
M

mounil

Hi all,
In Outlook 2002 , the Master Category List is stored in the registry(
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Categories) in Hex
format as opposed to a string format for earlier versions. I wanted to know
how can I convert the MasterList file to a text/string format. I need to do
this as I then need to get the individual categories in the list.
TIA
Mounil.
 
Hi Mounil,

this is a sample for converting the string:

Private Function IMainCat_ReadCategories() As String
On Error Resume Next
Dim ubnd As Long
Dim byBuffer() As Byte
Dim sRegValue As String

byBuffer = sRegValue

ubnd = UBound(byBuffer)
If ubnd > 1 Then
' Cut the last two characters
ReDim Preserve byBuffer(ubnd - 2)
End If
IMainCat_ReadCategories = byBuffer
End Function

Here sRegValue is empty, of course. It should contain the value, which
you´ve got from the Registry.
 
Back
Top