undeclared identifier on a string delphi
<p>I really need some help i am desperate for a solution!</p>

<p>I have a offline messenging form/unit. It will not allow me to compile.</p>

<p>Here is the full code: </p>

<p><a href="http://beyluxe.googlecode.com/svn/trunk/mine/OfflinesUnit.pas" rel="nofollow">http://beyluxe.googlecode.com/svn/trunk/mine/OfflinesUnit.pas</a></p>

<p>I get the following errors: </p>

<pre><code>Build
  [Error] OfflinesUnit.pas(103): Undeclared identifier: 'LoadString'
  [Error] OfflinesUnit.pas(142): Undeclared identifier: 'LoadString'
  [Fatal Error] MainUnit.pas(480): Could not compile used unit 'OfflinesUnit.pas'
</code></pre>

<p>Error 1:</p>

<pre><code>procedure TOfflinesForm.FormShow(Sender: TObject);
var
  i: Integer;
  PMText: string;
begin
  for i := 0 to OfflineList.Count - 1 do
  begin
    OfflineListView.Items.Add;
    OfflineListView.Items.Caption := OfflineSenders.Strings;
    OfflineListView.Items.SubItems.Add(OfflineList.Strings);
    Viewer.LoadString(PChar(OfflineList.Objects), '', HTMLType);
    Viewer.SelectAll;
    PMText := Viewer.SelText;
    Viewer.SelLength := 0;
    Viewer.Clear;
    OfflineListView.Items.SubItems.Add(PMText);
  end;
end;
</code></pre>

<p>Error 2:</p>

<pre><code>procedure TOfflinesForm.SendTextToViewer(User, Text: string; UserColor: TColor);
var
  Str: string;
begin
  Str := '&lt;B&gt;&lt;font size=0 color=#' + IntToHeWebColor(BUDDYNICKCOLOR, 8) + '&gt;' +
    User + ':&lt;/font&gt;&lt;/B&gt; ';
  Str := Str + ReplaceSmilesText(' ' + Text);
  // Str := CorrectHTMLLinks(Str);
  Viewer.LoadString(Str, '', HTMLType);
  Viewer.VScrollBarPosition := Viewer.VScrollBar.Max;
  Viewer.Invalidate;
end;
</code></pre>