title: Why can't I use a resourcestring as a constant?
body: <p>I've downloaded <code>embtvstools</code> (Embarcadero TVirtualShellTools) from: <a href="http://embtvstools.svn.sourceforge.net/" rel="nofollow">http://embtvstools.svn.sourceforge.net/</a>  </p>
  
  <p>However when I create a new package, drop the .pas files <em>(and a missing <code>compilers.inc</code> from VirtualTreeView in)</em> and compile the lot, I get an error E2026, <strong>why is this and how do I avoid/workaround this?</strong> </p>
  
  <pre><code>resourcestring
      sAssociationChanged = 'Association Changed';
      sItemCreate = 'Item Create';
      sItemDelete = 'Item Delete';
      ....
  
  const
    // Literal translations of TShellNotifyEvent type.  Useful when using the
    // OnShellNotify event to print out what event occurred.  VirtualShellUtilities.pas
    // has a helper function ShellNotifyEventToStr that uses these.
    VET_NOTIFY_EVENTS: array[0..19] of WideString = (
      sAssociationChanged,
      sAttributes,
      sItemCreate,
      .....
  </code></pre>
  
  <blockquote>
    <p>[Pascal Error] IDEVirtualResources.pas(155): E2026 Constant expression expected<br>
    [Pascal Error] IDEVirtualResources.pas(156): E2026 Constant expression expected<br>
    [Pascal Error] IDEVirtualResources.pas(157): E2026 Constant expression expected</p>
  </blockquote>
  
  <p><strong>Update</strong><br>
  Changing the <code>widestring</code> to a <code>string</code> stops the compiler complaining, (I suspect it will create some issue elsewhere because widestring &lt;> string) I would like to keep the constant of type <code>widestring</code>.</p>