![]() |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|