Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2004, 06:04 AM
nicetrip978 nicetrip978 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 21
Default Form interaction

Hi everyone!!
I'm trying to create a form where:1) I can insert my commands to be sent to a remote device and 2)I can view the response from that device - in the same window, like a command prompt!!
Can a Memo do it or it's better to use another one??(I'm using delphi6!!)
Thank You!!@

Christian
Reply With Quote
  #2  
Old 10-07-2004, 08:47 AM
AceOmega AceOmega is offline
Senior Member
 
Join Date: Sep 2004
Posts: 2,393
Default RE: Form interaction

A TMemo should work fine.

Function SendCommands;
var
ResultString : String;
begin
ResultString := MyExecuteCommandProcedure(Memo1.Lines[Memo1.Lines.Count-1]; {Sends Last Line}
Memo1.Lines.Add(ResultString);
end; {Send Commands}

I do not know what device you are trying to send the commands to or how it comunicates, so I can't write the MyExecuteCommandProcedure for you with out that info but I am assuming you have already worked that part out.

Ace
Reply With Quote
  #3  
Old 10-08-2004, 02:04 AM
nicetrip978 nicetrip978 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 21
Default RE: Form interaction

thank you guy!!
now my problem is that I don't exactly know how send the lines in tmemo!
previously I used the TClientSocket, but in tmemo it doesn't seem to work!!
can you help me!!
PS: the device is a router, but I think that a generic procedure works good with it, in fact with the TClientSocket works good!!@
Christian
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.