Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Propper way to show message from client into TembbeddedWb

Posted on 2014-10-14
4
Medium Priority
?
271 Views
Last Modified: 2014-10-17
i send message like this

SendCommandWithParams(TCPClient, 'TEXTMESSAGE', strMsg + Sep);

Open in new window


how to show the message to other clients in TembbeddedWB ? an exact step with code Please .
0
Comment
Question by:drama22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 2000 total points
ID: 40383748
in a addition to answer: Q_28535415#a40383742 ....
with TEditDesigner connected to Ewb you can grab text:

lst: TStringList;
..
lst:=TStringList.Create;
try
  if EditDesigner1.ConnectDesigner = S_OK then
  begin
    EmbeddedWB1.SaveToStrings(lst);
    html_text := lst.Text;
  end;
finally
  lst.Free;
end;

Open in new window

0
 

Author Comment

by:drama22
ID: 40384404
thats will not showing any html inside the EmbeddedWB  i will give you excellent because of your contentious help ..
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 40386758
Strange. I make Demo.html file with contents:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Test</TITLE>
<BODY>
Some text here<br>
</BODY></HTML>

Open in new window


... load with:
var
  sFileName: string;
  lst: TStringList;
begin
    lst := TStringList.Create;
    try
      sFileName := ExtractFilePath(Paramstr(0)) + 'Demo.html';
      lst.LoadFromFile(sFileName);
      EmbeddedWB1.LoadFromStrings(lst);
    finally
      lst.Free;
    end;
....

Open in new window


...save again to file/list:
var
  sFileName: string;
  lst: TStringList;
begin
    lst := TStringList.Create;
    try
      sFileName := ExtractFilePath(Paramstr(0)) + 'Demo3.html';
      EmbeddedWB1.SaveToStrings(lst);
      lst.SaveToFile(sFileName);
    finally
      lst.Free;
    end;
....

Open in new window


Before all code designer is turn on:
EditDesigner1.ConnectDesigner

Open in new window

0
 

Author Comment

by:drama22
ID: 40387144
This is the problem I save every word that user type to html and I have to use idhttp to grab the new typed message thats not a logic chat like paltalk doesnt do that .
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question