#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    ClientSocket's commands


    Hi!!
    I'm using the delphi6's ClientSocket, and I need to know an istruction that is corrispondent to the delphi7's IdTCPClient ReadLn:

    Msg := MainForm.IdTCPClient1.ReadLn;

    Using ClientSocket in delphi6 instead of idTCPClient, the compiler gives me the error (about ReadLn):'identificator not declared'

    Please help me, Thank You!!!!!!

    Christian
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,638
    Rep Power
    4247
    Try using the Socket.ReceiveText property like this:
    sText := ClientSocket.Socket.ReceiveText;
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    Thank You!!


    Thank Scorpion, now it works!!!

IMN logo majestic logo threadwatch logo seochat tools logo