Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:07:12+00:00 2026-06-11T21:07:12+00:00

I am using Indy 10(TIdTcpServer) and I get the following error: [DCC Error] MainForm.pas(88):

  • 0

I am using Indy 10(TIdTcpServer) and I get the following error:

[DCC Error] MainForm.pas(88): E2066 Missing operator or semicolon

When trying to run this code:

procedure TForm1.SendMessage(Data: String; Client: Integer);
var
  List: TList;
  AContext: TIdContext;
begin
  List := idTcpServer1.Contexts.LockList;
  AContext(List[0]).Connection.IOHandler.WriteLn(Data);  // Line 88
end;

I cannot figure out what I am missing; any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:07:13+00:00Added an answer on June 11, 2026 at 9:07 pm

    While I can’t explain the error you’re getting, your code is totally wrong.

    Change it to:

    procedure TForm1.SendMessage(Data: String; Client: Integer);
    var
      List: TList;
      AContext: TIdContext;
    begin
      List := idTcpServer1.Contexts.LockList;
      AContext := TIdContext(List[0]);
      AContext.Connection.IOHandler.WriteLn(Data);
    end;
    

    Your bad use of the typecast with a non-type may be confusing the compiler. If that doesn’t solve it, please edit your question to add more code around what you’ve posted (the dozen or so lines before what you’ve posted would help).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send emails from smtps (secure smtp) using Indy and the
I'm using the latest indy snapshot (installed yesterday) and newest SSL libraries. When trying
I am trying to send an e-mail using gmail account (Delphi 7, Indy 10)
I have a client/server application written in delphiXe2 using Indy TIdTCPServer and TIdTCPClient that
Good day! I'm using Delphi XE and Indy TIdHTTP. Using Get method I get
I'm trying to resume an upload using indy (HTTP Post), the code looks like
I want to send some binary data over via GET using the Indy components.
I am using Indy to perform a reverse IPv4 lookup using the following code.
I have the following task: download a file using HTTPS and authentication. Indy seems
Currently I'm success fully make server and client using TIdTCPServer and TIdTCPClient Indy components,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.